dojox.fx.addClass
dojo.require("dojox.fx.style");
defined in dojox/fx/style.js
Creates an animation that will animate the properties of a node to the properties defined in a standard CSS .class definition. (calculating the differences itself)
Usage
function (/*dojox.fx._arg.StyleArgs*/ args) (view source)
parameter | type | description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
args | dojox.fx._arg.StyleArgs | The node and CSS class to use for style manipulations.
|
Examples
Example 1
.bar { line-height: 12px; }
.foo { line-height: 40px; }
// animate to line-height:40px
dojo.fx.addClass({ node:"test", cssClass:"foo" }).play();