Nos bénévoles n'ont pas encore traduit cet article en Français. Inscrivez-vous et aidez-nous à réaliser cette tâche !
Vous pouvez également lire cet article en English (US).

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The getAnimations() method of the Document interface returns an array of all Animation objects currently in effect whose target elements are descendants of the document. This array includes CSS Animations, CSS Transitions, and Web Animations.


var allAnimations = Document.getAnimations();



Return value

An Array of Animation objects, each representing one animation currently associated with elements which are descendants of the Document on which it's called.


The following code snippet will slow down all animations on a page by halving their Animation.playbackRate.

  function (animation) {
    animation.playbackRate *= .5;


Specification Status Comment
Web Animations
The definition of 'document.getAnimations()' in that specification.
Working Draft Editor's draft.

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Chrome No support NoEdge No support NoFirefox No support No
No support No
Notes Currently available only in Firefox Nightly and Firefox Developer Edition.
IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support NoSamsung Internet Android ?


No support  
No support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.
See implementation notes.
See implementation notes.

See also

Étiquettes et contributeurs liés au document

Contributeurs à cette page : birtles, mdnwebdocs-bot, fscholz, Sheppy, chrisdavidmills, rachelnabors
Dernière mise à jour par : birtles,