AnimationEvent:elapsedTime 属性
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年9月.
AnimationEvent.elapsedTime 只读属性是一个 float 类型的值,用于表示动画触发此事件时已运行的时间(不包括任何暂停时间,并且以秒为单位)。对于 animationstart 事件,如果 animation-delay 的值为负数,则 elapsedTime 将包括 (-1 * delay);否则,elapsedTime 为 0.0。
值
一个以秒为单位的时间值。
规范
| Specification |
|---|
| CSS Animations Level 1> # dom-animationevent-elapsedtime> |
浏览器兼容性
Loading…