diff options
| author | MDN <actions@users.noreply.github.com> | 2021-03-12 00:26:31 +0000 |
|---|---|---|
| committer | MDN <actions@users.noreply.github.com> | 2021-03-12 00:26:31 +0000 |
| commit | 13b1bd338b6f1443491b4e7889554868d74784f6 (patch) | |
| tree | 43a05405db6bed752b1ebd53f183f55ca9c4e840 /files/ja/web/api/documentorshadowroot | |
| parent | bed4d75a6446747baec67da8889d1aabd5511e2a (diff) | |
| download | translated-content-13b1bd338b6f1443491b4e7889554868d74784f6.tar.gz translated-content-13b1bd338b6f1443491b4e7889554868d74784f6.tar.bz2 translated-content-13b1bd338b6f1443491b4e7889554868d74784f6.zip | |
[CRON] sync translated content
Diffstat (limited to 'files/ja/web/api/documentorshadowroot')
| -rw-r--r-- | files/ja/web/api/documentorshadowroot/getanimations/index.html | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/files/ja/web/api/documentorshadowroot/getanimations/index.html b/files/ja/web/api/documentorshadowroot/getanimations/index.html deleted file mode 100644 index 83900d4b9f..0000000000 --- a/files/ja/web/api/documentorshadowroot/getanimations/index.html +++ /dev/null @@ -1,82 +0,0 @@ ---- -title: Document.getAnimations() -slug: Web/API/DocumentOrShadowRoot/getAnimations -tags: - - API - - Animation - - CSS - - CSS Animations - - CSS Transitions - - Document - - Experimental - - Method - - Reference - - Transitions - - Web Animations - - getAnimations - - waapi - - web animations api -translation_of: Web/API/DocumentOrShadowRoot/getAnimations -original_slug: Web/API/Document/getAnimations ---- -<p>{{ SeeCompatTable() }}{{APIRef("Web Animations")}}</p> - -<p><code>getAnimations()</code> メソッドは {{domxref("Document")}} インターフェイスのメソッドで、この文書の配下にあるターゲット要素にあるすべての {{domxref("Animation")}} オブジェクトの配列を返します。この配列には <a href="/ja/docs/Web/CSS/CSS_Animations">CSS アニメーション</a>, <a href="/ja/docs/Web/CSS/CSS_Transitions">CSS トランジション</a>, <a href="/ja/docs/Web/API/Web_Animations_API">ウェブアニメーション</a> が含まれます。</p> - -<h2 id="Syntax" name="Syntax">構文</h2> - -<pre class="syntaxbox notranslate">var <var>allAnimations</var> = <var>Document</var>.getAnimations(); -</pre> - -<h3 id="Parameters" name="Parameters">引数</h3> - -<p>なし。</p> - -<h3 id="Return_value" name="Return_value">返値</h3> - -<p>{{domxref("Animation")}} オブジェクトの {{jsxref("Array")}} で、それぞれの要素は呼び出された {{domxref("Document")}} の配下にある要素に現在関連付けられているアニメーション1つを表します。</p> - -<h2 id="Examples" name="Examples">例</h2> - -<p>次のコードスニペットは、ページ上のすべてのアニメーションの {{domxref("Animation.playbackRate")}} を半分にすることで速度をゆっくりにします。</p> - -<pre class="brush: js notranslate">document.getAnimations().forEach( - function (animation) { - animation.playbackRate *= .5; - } -);</pre> - -<h2 id="Specifications" name="Specifications">仕様書</h2> - -<table class="standard-table"> - <thead> - <tr> - <th scope="col">仕様書</th> - <th scope="col">状態</th> - <th scope="col">備考</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{SpecName('Web Animations', '#dom-documentorshadowroot-getanimations', 'document.getAnimations()' )}}</td> - <td>{{Spec2('Web Animations')}}</td> - <td></td> - </tr> - </tbody> -</table> - -<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> - -<div class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</div> - -<p>{{Compat("api.Document.getAnimations")}}</p> - -<h2 id="See_also" name="See_also">関連情報</h2> - -<ul> - <li><a href="/ja/docs/Web/API/Web_Animations_API">ウェブアニメーション API</a></li> - <li><a href="/ja/docs/Web/CSS/CSS_Animations">CSS アニメーション</a></li> - <li><a href="/ja/docs/Web/CSS/CSS_Transitions">CSS トランジション</a></li> - <li>{{domxref("Element.getAnimations()")}} - 単一の要素 ({{domxref("Element")}}) とその子孫にあるアニメーションのみを読み取る</li> - <li>{{domxref("Animation")}}</li> -</ul> |
