blob: 0a07a3367ee5586ca1949bdd44913a455e3cef26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
---
title: Animation.effect
slug: Web/API/Animation/effect
tags:
- API
- Animacion
- Animaciones Web
- Experimental
- Reference
- efecto
translation_of: Web/API/Animation/effect
---
<div>{{ SeeCompatTable() }} {{ APIRef("Web Animations") }}</div>
<p>La propiedad <code><strong>Animation</strong></code><strong><code>.effect</code></strong> de la <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API">Web Animations API</a> obtiene y establece el efecto objetivo de una animación. El efecto objetivo puede ser un objeto efecto de un tipo basado en {{domxref("AnimationEffectReadOnly")}}, como {{domxref("KeyframeEffect")}}, o <code>null</code>.</p>
<h2 id="Sintaxis">Sintaxis</h2>
<pre class="syntaxbox">var <em>effect</em> = <em>Animation</em>.effect;
<em>Animation</em>.effect = <em>{{domxref("AnimationEffectReadOnly")}}</em></pre>
<h3 id="Valor">Valor</h3>
<p>Un objeto {{domxref("AnimationEffectReadOnly")}} que describe el efecto de animación objetivo para la animación, o <code>null</code> para indicar que el efecto no está activo.</p>
<table class="standard-table">
<tbody>
<tr>
<th scope="col">Specification</th>
<th scope="col">Status</th>
<th scope="col">Comment</th>
</tr>
<tr>
<td>{{SpecName('Web Animations', '#dom-animation-effect', 'Animation.effect' )}}</td>
<td>{{Spec2('Web Animations')}}</td>
<td>Editor's draft.</td>
</tr>
</tbody>
</table>
<h2 id="Compatibilidad_con_navegadores">Compatibilidad con navegadores</h2>
{{Compat("api.Animation.effect")}}
<h2 id="Ver_también" style="line-height: 30px; font-size: 2.14285714285714rem;">Ver también</h2>
<ul>
<li><a href="/en-US/docs/Web/API/Web_Animations_API">Web Animations API</a></li>
<li>{{domxref("AnimationEffectReadOnly")}}</li>
<li>{{domxref("Animation")}}</li>
</ul>
|