Skip to content

kevin-smets/angular-animate.css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Angular-animate.css

Angular-animate.css is no more. Angular.js 1.2 has totally reworked the animation module.

An example of how to use animate.css in your Angular (1.2+) projects can be found here: http://plnkr.co/U1JK27T2s5nq727kygb4

Angular-animate.css WAS a collection of animation helpers for AngularJS (1.1.5) web apps.

Demo page is here: http://cdpn.io/rznBj

Get started

First of, you'll need animate.css and angular (1.1.5). When that's done, include angular-animate[.min].css after animate.css into your project.

Animate.css -> https://github.com/daneden/animate.css#attention-seekers AngularJS -> http://angularjs.org

More info on animation in AngularJS

Yearofmoo -> http://www.yearofmoo.com/2013/05/enhanced-animations-in-angularjs.html

Install using bower

Angular-animate is also available through bower:

bower install angular-animate.css

Basic usage

You can now animate the appropriate angular directives: e.g.

<div class="animated" ng-if="isVisible()" ng-animate="'fade'"></div>

This will trigger the fade animation on enter / show and leave / hide. If you only want fade on enter, you have to use

<div class="animated" ng-if="isVisible()" ng-animate="{enter: 'fade-enter'}"></div>

In and Out animations are combined, so if you use

<div class="animated" ng-if="isVisible()" ng-animate="'fadeUp'"></div>

This will trigger fadeInUp on enter and fadeOutUp on leave. If you want this differently (e.g. fadeOutDown on leave / hide), you'll have to define the enter and leave seperately.

<div class="animated" ng-if="isVisible()" ng-animate="'{enter: 'fadeUp-enter', leave: 'fadeDown-leave'}'"></div>

All of the animate.css animations are currently available.

Attention seekers

flash bounce shake tada swing wobble wiggle pulse

Flippers (currently Webkit, Firefox, & IE10 only):

flip flipInX flipOutX flipInY flipOutY

Fading entrances:

fadeIn fadeInUp fadeInDown fadeInLeft fadeInRight fadeInUpBig fadeInDownBig fadeInLeftBig fadeInRightBig

Fading exits:

fadeOut fadeOutUp fadeOutDown fadeOutLeft fadeOutRight fadeOutUpBig fadeOutDownBig fadeOutLeftBig fadeOutRightBig

Bouncing entrances:

bounceIn bounceInDown bounceInUp bounceInLeft bounceInRight

Bouncing exits:

bounceOut bounceOutDown bounceOutUp bounceOutLeft bounceOutRight

Rotating entrances:

rotateIn rotateInDownLeft rotateInDownRight rotateInUpLeft rotateInUpRight

Rotating exits:

rotateOut rotateOutDownLeft rotateOutDownRight rotateOutUpLeft rotateOutUpRight

Lightspeed:

lightSpeedIn lightSpeedOut

Specials:

hinge rollIn rollOut

Roadmap / wishlist

  • create a custom build
  • daisy chaining of animations
  • ...

Version history

  • 2013-08-08: proper semver for bower
  • 2013-07-11: v1.0.0 Bump to v1.0.0
  • 2013-07-08: First public release

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages