Patrick Cavit![]()
YUI's Animation object doesn't support animating the CSS3 box-shadow property so I built a behavior add-in to provide it.
Simply specify a from or to value of "boxShadow". It will be normalized for you.
Currently only supports a single box-shadow with pixel measurements. The plan is to add support for multiple box-shadow values as soon as somebody provides an actual use for them that doesn't look silly.
Doesn't work in Opera due to some weird box-shadow redraw issues in that browser. Doesn't work in IE < 9 (& support for IE9 is theoretical at best currently)
<script src="http://yui.yahooapis.com/3.2.0 PR1/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2010.08.18-17-12'
}).use('gallery-boxshadow-anim', function(Y) {
var a = new Y.Anim({
node : "#a",
to : { boxShadow : "0 0 50px 5px #F00" }
});
a.run();
});No forum posts for this module.
© 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