AnimationPlaybackEvent: AnimationPlaybackEvent() コンストラクター - Web API | MDN

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

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

Baseline 広く利用可能

この機能は広く実装されており、多くのバージョンの端末やブラウザーで動作します。2020年7月以降、すべてのブラウザーで利用可能です。

>

AnimationPlaybackEvent()ウェブアニメーション API のコンストラクターで、新しい AnimationPlaybackEvent オブジェクトインスタンスを返します。

構文

js
new AnimationPlaybackEvent(type)
new AnimationPlaybackEvent(type, options)

引数

type

イベントの名前を表す文字列です。 大文字と小文字を区別し、ブラウザーは cancel, finish, remove のいずれかに設定します。

options 省略可

オブジェクトで、Event() で定義されているプロパティに加えて、以下のプロパティがあります。

detail 省略可

イベントに関連付けられたイベント依存の値です。既定値は null です。

返値

新しい AnimationPlaybackEvent オブジェクトです。

仕様書

仕様書
Web Animations>
# dom-animationplaybackevent-animationplaybackevent>

ブラウザーの互換性

関連情報