diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/animation/cancel | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/ja/web/api/animation/cancel')
-rw-r--r-- | files/ja/web/api/animation/cancel/index.html | 75 |
1 files changed, 75 insertions, 0 deletions
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 +--- +<p>{{ SeeCompatTable() }}{{ APIRef("Web Animations") }}</p> + +<p>{{domxref("Animation")}} インターフェースにある Web Animations API の <code><strong>cancel()</strong></code> メソッドは、このアニメーションによって引き起こされたすべての {{domxref("KeyframeEffect")}}を初期化し、再生を中止します。</p> + +<div class="note"> +<p>アニメ―ションをキャンセルした時、{{domxref("Animation.startTime", "startTime")}} と {{domxref("Animation.currentTime", "currentTime")}} は、 <code>null</code> にセットされます。</p> +</div> + +<h2 id="構文">構文</h2> + +<pre class="syntaxbox notranslate"><em>Animation</em>.cancel();</pre> + +<h3 id="引数">引数</h3> + +<p>なし</p> + +<h3 id="戻り値">戻り値</h3> + +<p>なし</p> + +<h3 id="例外">例外</h3> + +<p>このメソッドは、直接例外をスローしません。 しかし、キャンセル時にアニメーションの{{domxref("Animation.playState", "playState")}}が <code>"idle"</code> 以外の場合、 {{domxref("Animation.finished", "current finished promise", "", 1)}} は <code>AbortError</code> という名前の {{domxref("DOMException")}} で拒否されます。</p> + +<dl> +</dl> + +<h2 id="仕様">仕様</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">仕様書</th> + <th scope="col">策定状況</th> + <th scope="col">備考</th> + </tr> + <tr> + <td>{{SpecName('Web Animations', '#dom-animation-cancel', 'Animation.cancel()' )}}</td> + <td>{{Spec2('Web Animations')}}</td> + <td>Editor's draft.</td> + </tr> + </tbody> +</table> + +<h2 id="ブラウザ実装状況">ブラウザ実装状況</h2> + +<div> + + +<p>{{Compat("api.Animation.cancel")}}</p> +</div> + +<h2 id="関連情報" style="line-height: 30px; font-size: 2.14285714285714rem;">関連情報</h2> + +<ul> + <li><a href="/ja/docs/Web/API/Web_Animations_API">Web Animations API</a></li> + <li>{{domxref("KeyframeEffect")}}</li> + <li>{{domxref("Animation")}}</li> + <li>{{domxref("Animation.playState")}}</li> + <li>{{domxref("Animation.finished")}} は、 <code>playState</code> <span class="tlid-translation translation" lang="ja"><span title="">が </span></span><code>"idle"</code><span class="tlid-translation translation" lang="ja"><span title=""> でない場合、</span></span> <span class="tlid-translation translation" lang="ja"><span title="">このアクションが拒否する</span></span> promise<span class="tlid-translation translation" lang="ja"><span title=""> を返します。</span></span></li> +</ul> |