• ng.Element.animate is not available in the Lite version

Self ng.Element.animate (Object anim_obj, [Function func = Null]) vs. 1.1.0 FULL ONLY

This method will animate the HTML Element CSS properties. You can chain multiple animations (including ng.Element.fade_out, ng.Element.fade_in, ng.Element.move_to, ng.Element.bezier_move and ng.Element.reverse_animation) one after the other. The custom event onAnimationFinish will be fired when the animation is over.

Parameters

Object anim_obj vs. 1.1.0 Full+Lite
An object that contains the animation properties. The only required key is the "end" which is an object of CSS properties to animate. For example { end : { width : 500 } }
Function func (Optional - Default: Null) vs. 1.1.0 Full+Lite
A function that will run after the animation is finished.

Return

Self Required vs. 1.1.0 Full+Lite
The original HTML Element.

Examples

Using ng.Element.animate(obj, func)
In this example we'll create multiple animation and chain them together.
Demo:
Hello World

API Menu