Functiondojox.fx.sizeTo

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

Returns an animation that will size "node" defined in args Object about it's center to a width and height defined by (args.width, args.height), supporting an optional method: chain||combine mixin (defaults to chain).

  • works best on absolutely or relatively positioned elements?

Usage

function (/*Object*/ args) (view source)
parametertypedescription
argsObject 

Examples

Example 1

// size #myNode to 400px x 200px over 1 second
dojo.fx.sizeTo({ node:'myNode',
    duration: 1000,
    width: 400,
    height: 200,
    method: "chain"
}).play();