Giter Club home page Giter Club logo

nzanimate's Introduction

nzAnimate

A sickly simple class-based library for Angular animations.

Built on Animate.css and animate-stylus, nzAnimate not only provides the regular functionality of Animate.css, but also provides easier classes for Angular animations on directives like ng-repeat (ng-enter, ng-leave), ng-hide, ng-show, or any other directives that leverage the ngAnimate module.

Awesome Demo

Installation

$ bower/npm install nz-animate --save

Usage

Plain ol' Animate

<div class="animate bounceInDown"></div>

Enter & Exit

<div class="enter-bounceInDown exit-bounceOutUp">Stuff</div>

Replace bounceInDown or bounceOutUp with any animation you see in the demo.

Speed

<div class="enter-bounceInDown exit-bounceOutUp speed-300">Stuff</div>

Default Speed: 700ms

Out of the box, nzAnimate supports any speed from speed-0 to speed-4000 in increments of 50.

Stagger

<div class="enter-bounceInDown exit-bounceOutUp stagger-100" ng-repeat="thing in things">
  {{thing}}
</div>

Out of the box, nzAnimate supports any stagger from stagger-0 to stagger-1000 in increments of 50.

Put it all together...

Using all of these together, everything will animate on creation, exit, re-entry, show, hide, move, etc...

<div class="animate bounceInDown enter-bounceInDown exit-bounceOutUp speed-500 stagger-100" ng-repeat="thing in things">
  {{thing}}
</div>

Custom Builds...

Simply edit /src/config.hjson to your liking!

{
  speed: {
    default: 1000,
    start: 0,
    end: 6000,
    increment: 100
  },
  stagger: {
    start: 0,
    end: 500,
    increment: 25
  },
  ieSupport: true,
  vendors: ['official', 'webkit', 'moz', '...']
  animations: ['bounceDownIn', 'bounceUpOut', '...'],
}

Then: $ npm install $ gulp build

Roadmap & Contributing

  1. Integrate the rest of the animations available from Animate.css (not too many). Our animate-stylus repo is currently forked at https://github.com/tannerlinsley/animate-stylus,

  2. Lessen the size of the default build.

All PR's and contributions are more than welcome!

nzanimate's People

Contributors

derekperkins avatar nozzle avatar tannerlinsley avatar

Watchers

 avatar  avatar

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.