- From: Brad Kemper <brad.kemper@gmail.com>
- Date: Fri, 4 Mar 2011 11:00:39 -0800
- To: Brian Manthos <brianman@microsoft.com>
- Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>, Estelle Weyl <estelle@weyl.org>
On Mar 4, 2011, at 10:26 AM, Brian Manthos <brianman@microsoft.com> wrote: > And here's another example that animates the shadow with jscript but could easily be done with an animatable 'color' property where it would be more complicated to animate box-shadow directly (if supported at all). I don't understand. What woulnt be supported at all? What's wrong with the following line (altered): > var div = document.getElementsByTagName("div")[0]; > div.style.boxShadow = "0 0 50px rgb(" + i + "," + i + "," + i + ")"; > } Sure it is SLIGHTLY longer, but seems a better choice anyway than requiring something in the source (your span) to recolor the text.
Received on Friday, 4 March 2011 19:01:20 UTC