Functiondojox.fx.removeClass

dojo.require("dojox.fx.style");
defined in dojox/fx/style.js

Creates an animation that will animate the properties of a node (args.node) to the properties calculated after removing a standard CSS className from a that node.

calls dojo.removeClass(args.cssClass) onEnd of animation

standard dojo._Animation object rules apply.

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

// animate the removal of "foo" from a node with id="bar"
dojox.fx.removeClass({
    node: "bar",
    cssClass: "foo"
}).play();