Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020年3月.
getComputedTiming() は AnimationEffect インターフェイスのメソッドで、このアニメーション効果のタイミングのプロパティの計算値を返します。
メモ: これらの値は、 window.getComputedStyle(elem) を使用して返される要素のスタイルの計算値と同等です。
なし。
以下のものを含むオブジェクトです。
効果の開始時点からの終了時刻をミリ秒単位で示す number です。これは activeDuration に delay と endDelay を足した値になります。
activeDuration効果のすべての反復処理の合計時間をミリ秒単位で示す number です。これは duration に iterations を掛けたものです(その積が NaN となる場合はゼロ)。
localTimenumber または null です。
その効果が実行される時間をミリ秒単位で示します。これは関連するアニメーションの currentTime と等しく、効果がアニメーションに関連付けられていない場合は null となります。
progressnull または number で、 0 以上 1 未満です。
効果の現在の反復処理の進行状況を示します。 activeDuration の開始時点では、iterationStart の小数部と等しくなります。
例えば、効果が delay または endDelay の期間中であったり、効果が完了していたり、 localTime が null であるなど、反復処理の途中でない場合に null を返します。
currentIterationnull または整数の number です。
現在の反復処理のインデックスを示します。 activeDuration の開始時点では、 iterationStart の整数部と等しくなります。
progress が null ならば常に null です。
| Web Animations # dom-animationeffect-getcomputedtiming |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年6月24日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.