I volontari di MDN non hanno ancora tradotto questo articolo in Italiano. Unisciti a noi e traducilo tu stesso.
Puoi anche consultare l’articolo in 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 AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic support
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 NoEdge Mobile 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

Tag del documento e collaboratori

Hanno collaborato alla realizzazione di questa pagina: mdnwebdocs-bot, fscholz, Sheppy, chrisdavidmills, rachelnabors
Ultima modifica di: mdnwebdocs-bot,