W3C home > Mailing lists > Public > public-fx@w3.org > July to September 2012

animation-delay should support CSS counters as part of their value

From: Mårten Björk <marten@gosse.se>
Date: Thu, 5 Jul 2012 14:17:21 +0200
Message-Id: <D3B77C6F-1C78-44D2-9E43-606DBC65A1E9@gosse.se>
To: public-fx@w3.org
Hi,

One suggestion regarding CSS animations: the animation-delay property should support CSS counters as part of it's value, like animation-delay: counter(row) "s";

Use case: Fading in a bullet list, one item at a time. Instead of declaring delays for every single list item, the counter could be used.

It could even be used in conjunction with the calc function: animation-delay: calc( counter(row)/2 ) "s"; 


Mårten Björk
Received on Friday, 6 July 2012 07:49:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 6 July 2012 07:49:02 GMT