AnimationPlaybackEvent: AnimationPlaybackEvent() コンストラクター

Baseline 2022

Newly available

Since September 2022, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

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

関連情報