Patrick Cavit![]()
Use this when you need to animate an element's text-shadow. It plugs into the existing animation system so it works seamlessly, simply provide a "to" or "from" value for "textShadow".
Warning, the parser isn't very flexible & only understands pixel dimensions. Sorry!
<script src="http://yui.yahooapis.com/3.2.0/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2010.09.22-20-15'
}).use('gallery-textshadow-anim', function(Y) {
new Y.Anim({
node : "h1",
to : { textShadow : "#F00 0 0 60px" },
from : { textShadow : "#F00 0 0 0" },
iterations: 'infinite',
direction: 'alternate'
}).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