Functiondojox.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)
parametertypedescription
argsdojox.fx._arg.StyleArgsThe node and CSS class to use for style manipulations.
fieldtypedescription
.cssClassStringThe class to use during the manipulation
.nodeDOMNodeThe node to manipulate

Examples

Example 1

.bar { line-height: 12px; }
.foo { line-height: 40px; }

line


text

Multi
// animate to line-height:40px
dojo.fx.addClass({ node:"test", cssClass:"foo" }).play();