AnimationPlaybackEvent: AnimationPlaybackEvent() コンストラクター
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020年7月.
AnimationPlaybackEvent() はウェブアニメーション API のコンストラクターで、新しい AnimationPlaybackEvent オブジェクトインスタンスを返します。
構文
js
new AnimationPlaybackEvent(type)
new AnimationPlaybackEvent(type, options)
引数
type-
イベントの名前を表す文字列です。 大文字と小文字を区別し、ブラウザーは
cancel,finish,removeのいずれかに設定します。 options省略可-
オブジェクトで、
Event()で定義されているプロパティに加えて、以下のプロパティがあります。detail省略可-
イベントに関連付けられたイベント依存の値です。既定値は
nullです。
返値
新しい AnimationPlaybackEvent オブジェクトです。
仕様書
| Specification |
|---|
| Web Animations> # dom-animationplaybackevent-animationplaybackevent> |