// create two properties: objects, one for each "state"var _in = {};
var _out = {};
var cs = dojo.getComputedStyle(this._target);
for(var p inthis.properties){var v = parseInt(cs[p]);
// note: do not set negative scale for [a list of properties] for IE support// note: filter:'s are your own issue, too ;)
_out[p] = { end: v, unit:this.unit};
_in[p] = { end: (this.properties[p]*v), unit:this.unit};
}this._runningIn = dojo.animateProperty({
node: this._target,
easing: this.easeIn,
duration: this.durationIn,
properties: _in
});
this._runningOut = dojo.animateProperty({
node: this._target,
duration: this.durationOut,
easing: this.easeOut,
properties: _out
});
this.connect(this._runningIn,"onEnd",dojo.hitch(this,"onSelected",this));