Animation: effect property

Baseline 2022

Newly available

Since September 2022, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

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.

Value

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

Specifications

Specification
Web Animations
# dom-animation-effect

Browser compatibility

BCD tables only load in the browser

See also