Animation.effect

Experimental: 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.

Syntax

var effect = Animation.effect;

Animation.effect = AnimationEffect

Value

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

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
effect
75
79
63
No
62
13.1
75
75
63
54
13.4
11.0

See also

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Animation/effect