Giter Club home page Giter Club logo

angular-animate.css's Introduction

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

angular-animate.css's People

Contributors

kevin-smets avatar

Stargazers

 avatar Nate C. avatar Colin Seale avatar Yogie Kurniawan avatar Jussi avatar Sachit avatar Tarkan Anlar avatar Eisneim Terry avatar Lars Wallin avatar Masahiro Saito avatar Michael Bleigh avatar Marshall Upshur avatar  avatar

Watchers

Fernando Dobladez avatar Brandon Aubie avatar James Cloos avatar  avatar

Forkers

lymanlai

angular-animate.css's Issues

no effect

When I am in order to introduce why no effect after three file(animate.css-->angular.js-->angular-animate.css)?Please give a complete code!Please forgive my poor English!thanks!

Not actually Angular 1.2?

EDIT: Sorry, I had forgotten to include animate.css as well!

The example page is still using ng-animate directives and angular 1.1.5.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.