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 March 2020.
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 |
ブラウザーの互換性
BCD tables only load in the browser