--- title: animation-play-state slug: Web/CSS/animation-play-state tags: - CSS - CSS Animationen - CSS Eigenschaft - Experimentell - Layout - Referenz - Web translation_of: Web/CSS/animation-play-state --- <div>{{CSSRef}}</div> <h2 id="Übersicht">Übersicht</h2> <p>Die <code>animation-play-state</code> <a href="/de/docs/Web/CSS" title="CSS">CSS</a> Eigenschaft bestimmt, ob eine Animation abläuft oder pausiert ist. Der Wert dieser Eigenschaft kann abgefragt werden, um festzustellen, ob die Animation gerade abläuft oder nicht; darüber hinaus kann der Wert auch gesetzt werden, um die das Abspielen der Animation anzuhalten und fortzusetzen.</p> <p>Wenn eine pausierte Animation fortgesetzt wird, wird sie dort gestartet, wo sie angehalten wurde, nicht vom Anfang der Animationssequenz.</p> <p>{{cssinfo}}</p> <h2 id="Syntax">Syntax</h2> <pre class="brush: css notranslate">/* Einzelne Animation */ animation-play-state: running; animation-play-state: paused; /* Mehrere Animationen */ animation-play-state: paused, running, running; /* Globale Werte */ animation-play-state: inherit; animation-play-state: initial; animation-play-state: unset; </pre> <h3 id="Werte">Werte</h3> <dl> <dt><code>running</code></dt> <dd>Die Animation läuft aktuell ab.</dd> <dt><code>paused</code></dt> <dd>Die Animation ist aktuell pausiert.</dd> </dl> <h3 id="Formale_Syntax">Formale Syntax</h3> {{csssyntax}} <h2 id="Beispiele">Beispiele</h2> <p>Siehe <a href="/de/docs/Web/Guide/CSS/CSS_Animationen_nutzen" title="CSS/CSS_animations">CSS Animationen</a> für Beispiele.</p> <h2 id="Spezifikationen">Spezifikationen</h2> <table class="standard-table"> <thead> <tr> <th scope="col">Spezifikation</th> <th scope="col">Status</th> <th scope="col">Anmerkung</th> </tr> </thead> <tbody> <tr> <td>{{SpecName('CSS3 Animations', '#animation-play-state', 'animation-play-state')}}</td> <td>{{Spec2('CSS3 Animations')}}</td> <td>Ursprüngliche Definition</td> </tr> </tbody> </table> <h2 id="Browser_Kompatibilität">Browser Kompatibilität</h2> <p>{{Compat("css.properties.animation-play-state")}}</p> <h2 id="Siehe_auch">Siehe auch</h2> <ul> <li><a href="/de/docs/Web/Guide/CSS/CSS_Animationen_nutzen" title="Tutorial about CSS animations">CSS Animationen nutzen</a></li> <li>{{domxref("AnimationEvent", "AnimationEvent")}}</li> </ul>