From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/animation/cancel/index.html | 75 ++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 files/ja/web/api/animation/cancel/index.html (limited to 'files/ja/web/api/animation/cancel') diff --git a/files/ja/web/api/animation/cancel/index.html b/files/ja/web/api/animation/cancel/index.html new file mode 100644 index 0000000000..96c63e90a5 --- /dev/null +++ b/files/ja/web/api/animation/cancel/index.html @@ -0,0 +1,75 @@ +--- +title: Animation.cancel() +slug: Web/API/Animation/cancel +tags: + - API + - Animation + - Method + - Reference + - Web Animations + - cancel + - waapi + - web animations api +translation_of: Web/API/Animation/cancel +--- +

{{ SeeCompatTable() }}{{ APIRef("Web Animations") }}

+ +

{{domxref("Animation")}} インターフェースにある Web Animations API の cancel() メソッドは、このアニメーションによって引き起こされたすべての {{domxref("KeyframeEffect")}}を初期化し、再生を中止します。

+ +
+

アニメ―ションをキャンセルした時、{{domxref("Animation.startTime", "startTime")}} と {{domxref("Animation.currentTime", "currentTime")}} は、 null にセットされます。

+
+ +

構文

+ +
Animation.cancel();
+ +

引数

+ +

なし

+ +

戻り値

+ +

なし

+ +

例外

+ +

このメソッドは、直接例外をスローしません。 しかし、キャンセル時にアニメーションの{{domxref("Animation.playState", "playState")}}が "idle" 以外の場合、 {{domxref("Animation.finished", "current finished promise", "", 1)}} は AbortError という名前の  {{domxref("DOMException")}} で拒否されます。

+ +
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様書策定状況備考
{{SpecName('Web Animations', '#dom-animation-cancel', 'Animation.cancel()' )}}{{Spec2('Web Animations')}}Editor's draft.
+ +

ブラウザ実装状況

+ +
+ + +

{{Compat("api.Animation.cancel")}}

+
+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf