Clock using CSS3 animation events
Refer to:
http://www.w3.org/TR/css3-animations/#animation-events
通常我们使用JS的setInterval() 或 requestAnimationFrame() 方法来定时。本例使用CSS3中的"animationiteration" 事件(event)来实现类似功能。该事件由 "animation-iteration" css属性所触发。该属性可以被JS所访问和修改。
CSS3,时钟
语言: