Skip to content

ng-collapse directive for angular, providing customizable collapse animations

Notifications You must be signed in to change notification settings

plong0/angular-collapse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-collapse

ng-collapse directive for angular, providing customizable collapse animations

installation

bower install angular-collapse

usage

basic example:

<button ng-click="open=!open">Open It</button>
<div ng-collapse="open">
    Collapsible div!
</div>

results in vertical collapse from top

collapse-options example:

<button ng-click="open=!open">Open It</button>
<div ng-collapse="open" collapse-options="{ horizontal: true, vertical: true, duration: '1.0s', timing: 'linear' }">
    Collapsible div!
</div>

results in 1.0 second, linear timed, horizontal + vertical collapse from top-left corner

horizontal from right example:

<button ng-click="open=!open">Open It</button>
<div ng-collapse="open" collapse-options="{ horizontal: 'right' }">
    Collapsible div!
</div>

results in horizontal collapse from right

vertical from bottom example:

<button ng-click="open=!open">Open It</button>
<div ng-collapse="open" collapse-options="{ vertical: 'bottom' }">
    Collapsible div!
</div>

results in vertical collapse from bottom

About

ng-collapse directive for angular, providing customizable collapse animations

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages