blob: 3e4b3dc37708cc5882fac21d543e7acb5bb0e090 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
---
title: animation-play-state
slug: Web/CSS/animation-play-state
translation_of: Web/CSS/animation-play-state
---
<div>{{CSSRef}}{{SeeCompatTable}}</div>
<h2 id="sect1"> </h2>
<h2 id="Resumen">Resumen</h2>
<p>La propiedad <a href="/en-US/docs/CSS" title="CSS">CSS</a> <strong><code>animation-play-state</code></strong> determina si una animación está en ejecución o en pausa. Puede ser consultada para determinar si la animación se está ejecutando. Además, su valor se puede establecer para pausar y reanudar una animación.</p>
<p>Reanudando una animación pausada, ésta empezará en el punto en el que fue pausada, en vez de empezar desde el principio.</p>
<p>{{cssinfo}}</p>
<h2 id="Sintaxis">Sintaxis</h2>
<pre class="brush: css">/* Single animation */
animation-play-state: running;
animation-play-state: paused;
/* Multiple animations */
animation-play-state: paused, running, running;
/* Global values */
animation-play-state: inherited;
animation-play-state: initial;
animation-play-state: unset;
</pre>
<h3 id="Valores">Valores</h3>
<dl>
<dt><code>running</code></dt>
<dd>La animación se está ejecutando.</dd>
<dt><code>paused</code></dt>
<dd>La animación está pausada.</dd>
</dl>
<h3 id="Syntax_formal">Syntax formal</h3>
<pre class="syntaxbox"><code>{{csssyntax}}</code>
</pre>
<h2 id="Ejemplos">Ejemplos</h2>
<p>Visita <a href="https://developer.mozilla.org/es/CSS/Usando_animaciones_CSS" title="en/CSS/CSS_animations">animaciones CSS</a> para ver algunos ejemplos.</p>
<h2 id="Especificaciones">Especificaciones</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">Especificación</th>
<th scope="col">Estado</th>
<th scope="col">Comentario</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{SpecName('CSS3 Animations', '#animation-play-state', 'animation-play-state')}}</td>
<td>{{Spec2('CSS3 Animations')}}</td>
<td>Definición incial</td>
</tr>
</tbody>
</table>
<h2 id="Compatibilidad_entre_navegadores">Compatibilidad entre navegadores</h2>
{{Compat("css.properties.animation-play-state")}}
<h2 id="sect2"> </h2>
<h2 id="Consulte_también">Consulte también</h2>
<ul>
<li><a href="/es/docs/Web/CSS/CSS_Animations/Using_CSS_animations" title="CSS developer guide about CSS animations">Usando animaciones CSS</a></li>
<li>{{domxref("AnimationEvent", "AnimationEvent")}}</li>
</ul>
|