Animation: effect property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2020.
TheAnimation.effect property of theWeb Animations API gets and sets the target effect of an animation. The target effect may be either an effect object of a type based onAnimationEffect, such asKeyframeEffect, ornull.
In this article
Value
AnAnimationEffect object describing the target animation effect for the animation, ornull to indicate no active effect.
Specifications
| Specification |
|---|
| Web Animations> # dom-animation-effect> |