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


The Animation.effect property of the Web Animations API gets and sets the target effect of an animation. The target effect may be either an effect object of a type based on AnimationEffect, such as KeyframeEffect, or null.


var effect = Animation.effect;

Animation.effect = AnimationEffect


A AnimationEffect object describing the target animation effect for the animation, or null to indicate no active effect.


Specification Status Comment
Web Animations
The definition of 'Animation.effect' in that specification.
Working Draft Editor's draft.

Browser compatibility

BCD tables only load in the browser

See also