Skip to main content

animation_event_ctor

Function animation_event_ctor 

Source
pub(crate) fn animation_event_ctor(
    it: &mut Interp,
    t: Value,
    a: &[Value],
) -> Result<Value, Value>
Expand description

new AnimationEvent(type, options)(丸ごと未対応だった。CSS アニメーション 完了シミュレーションの el.dispatchEvent(new AnimationEvent ('animationend', {animationName})) という定番パターン)。基底の Event プロパティは event_ctor を再利用し、animationName/ elapsedTime/pseudoElement を追加する。