1 if(!dojo._hasResource["dojox.fx.ext-dojo.NodeList"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
2 dojo._hasResource["dojox.fx.ext-dojo.NodeList"] = true;
3 dojo.provide("dojox.fx.ext-dojo.NodeList");
4 dojo.experimental("dojox.fx.ext-dojo.NodeList");
5 // summary: Core extensions to dojo.NodeList providing addtional fx to dojo.NodeList-fx
7 // A Package to extend dojo base NodeList with fx provided by the dojox.fx project.
8 // These are experimental animations, in an experimental
10 dojo.require("dojo.NodeList-fx");
11 dojo.require("dojox.fx");
13 dojo.extend(dojo.NodeList, {
15 sizeTo: function(args){
17 // size all elements of this NodeList. Returns an instance of dojo._Animation
19 // | // size all divs with class "blah"
20 // | dojo.query("div.blah").sizeTo({
24 return this._anim(dojox.fx, "sizeTo", args); // dojo._Animation
27 slideBy: function(args){
29 // slide all elements of this NodeList. Returns an instance of dojo._Animation
32 // | // slide all tables with class "blah" 10 px
33 // | dojo.query("table.blah").slideBy({ top:10, left:10 }).play();
34 return this._anim(dojox.fx, "slideBy", args); // dojo._Animation
37 highlight: function(args){
39 // highlight all elements of the node list.
40 // Returns an instance of dojo._Animation
42 // | // highlight all links with class "foo"
43 // | dojo.query("a.foo").hightlight().play();
44 return this._anim(dojox.fx, "highlight", args); // dojo._Animation
47 fadeTo: function(args){
49 // fade all elements of the node list to a specified opacity
51 // | // fade all elements with class "bar" to to 50% opacity
52 // | dojo.query(".bar").fadeTo({ end: 0.5 }).play();
53 return this._anim(dojo,"_fade",args);
56 wipeTo: function(args){
58 // Wipe all elements of the NodeList to a specified width: or height:
60 // | dojo.query(".box").wipeTo({ width: 300px }).play();
61 return this._anim(dojox.fx, "wipeTo", args);