1.0.8 • Published 6 years ago

anim8js-jquery v1.0.8

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

anim8js

anim8 your HTML elements with jQuery

Installation

  • Bower: bower install anim8js-jquery
  • Node: npm install anim8js-jquery
  • Download: anim8js-jquery

jQuery Functions

A few functions are available for jQuery which will help you animate jQuery objects:

  • m8/anim8/animator: returns an animator instance for the first element in the jQuery object.
  • m8s/anim8s/animators: returns animators for all elements in the jQuery object.
  • dataPlay: plays the animation specified in the data-... attribute for all elements in the jQuery object and returns a jQuery object which contains only elements that had a valid animation to play.
  • dataQueue: queues the animation specified in the data-... attribute for all elements in the jQuery object and returns a jQuery object which contains only elements that had a valid animation to queue.
  • dataTransition: transitions into the animation specified in the data-... attribute for all elements in the jQuery object and returns a jQuery object which contains only elements that had a valid animation to transition into.

For example if you have the following HTML:

<div id="box" data-intro="fadeIn ~5s" data-outro="flipOutX 0.5s">Hello World!</div>

You can play the specified animations with...

$('#box').dataPlay('intro').dataQueue('outro');
1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

9 years ago