dojo.NodeList.anim
dojo.require("dojo.NodeList-fx");
defined in dojo/NodeList-fx.js
Animate one or more CSS properties for all nodes in this list. The returned animation object will already be playing when it is returned. See the docs for dojo.anim
for full details.
Usage
parameter | type | description |
---|---|---|
properties | Object | the properties to animate |
duration | Integer | Optional. Optional. The time to run the animations for |
easing | Function | Optional. Optional. The easing function to use. |
onEnd | Function | Optional. A function to be called when the animation ends |
delay | Integer | Optional. how long to delay playing the returned animation |
Examples
Example 1
Another way to fade out:
dojo.query(".thinger").anim({ opacity: 0 });
Example 2
animate all elements with the "thigner" class to a width of 500 pixels over half a second
dojo.query(".thinger").anim({ width: 500 }, 700);