Animation.effect
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.
La propiedad Animation.effect
de la Web Animations API (en-US) obtiene y establece el efecto objetivo de una animación. El efecto objetivo puede ser un objeto efecto de un tipo basado en AnimationEffectReadOnly
(en-US), como KeyframeEffect
(en-US), o null
.
Sintaxis
js
var effect = Animation.effect;
Animation.effect = AnimationEffectReadOnly (en-US)
Valor
Un objeto AnimationEffectReadOnly
(en-US) que describe el efecto de animación objetivo para la animación, o null
para indicar que el efecto no está activo.
Especificaciones
Specification |
---|
Web Animations # dom-animation-effect |
Compatibilidad con navegadores
BCD tables only load in the browser