John Lindal![]()
This extension to Y.Anim allows specifying cssClass in the to and from configurations. This animates all the attributes affected by the classes that you specify.
Example of how to animate to a class and individual attributes.
<script src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.05.16-20-37'
}).use('gallery-anim-class', function(Y)
{
var node = Y.one('#my-node');
node.plug(Y.Plugin.NodeFX,
{
to: { cssClass: 'my-class', backgroundColor:'#FFFF00', color: '#000000' }
});
node.fx.run();
});
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info