Animation.effect
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.
La propiedad Animation.effect
de la Web Animations API obtiene y establece el efecto objetivo de una animación. El efecto objetivo puede ser un objeto efecto de un tipo basado en AnimationEffectReadOnly
, como KeyframeEffect
, o null
.
Sintaxis
var effect = Animation.effect;
Animation.effect = AnimationEffectReadOnly
Valor
Un objeto AnimationEffectReadOnly
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
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
effect |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support