aboutsummaryrefslogtreecommitdiff
path: root/files/de/web/css/animation-fill-mode/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/de/web/css/animation-fill-mode/index.html')
-rw-r--r--files/de/web/css/animation-fill-mode/index.html145
1 files changed, 145 insertions, 0 deletions
diff --git a/files/de/web/css/animation-fill-mode/index.html b/files/de/web/css/animation-fill-mode/index.html
new file mode 100644
index 0000000000..adfb23a43a
--- /dev/null
+++ b/files/de/web/css/animation-fill-mode/index.html
@@ -0,0 +1,145 @@
+---
+title: animation-fill-mode
+slug: Web/CSS/animation-fill-mode
+tags:
+ - CSS
+ - CSS Animationen
+ - CSS Eigenschaft
+ - Experimentell
+ - Referenz
+translation_of: Web/CSS/animation-fill-mode
+---
+<div>{{ CSSRef() }}</div>
+
+<h2 id="Übersicht">Übersicht</h2>
+
+<p><code>animation-fill-mode</code> definiert den Zustand einer Animation vor und nach deren Ablauf.</p>
+
+<p>{{cssinfo}}</p>
+
+<h2 id="Syntax">Syntax</h2>
+
+<pre class="twopartsyntaxbox">{{csssyntax}}
+</pre>
+
+<pre>animation-fill-mode: none
+animation-fill-mode: forwards
+animation-fill-mode: backwards
+animation-fill-mode: both
+
+<strong>The # indicates that several values may be given, separated by commas.
+Each applies to the animation defined in the same order in </strong>animation-name<code>.</code>
+animation-fill-mode: none, backwards
+animation-fill-mode: both, forwards, none
+</pre>
+
+<h3 id="Werte">Werte</h3>
+
+<dl>
+ <dt><code>none</code></dt>
+ <dd>Das Element nimmt keine Werte der Animation an.</dd>
+ <dt><code>forwards</code></dt>
+ <dd>Das Element nimmt nach Ablauf die Werte des letzten Animationsschrittes an, unter der Berücksichtigung von {{ cssxref("animation-direction") }} und {{ cssxref("animation-iteration-count") }}:
+ <table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col"><code>animation-direction</code></th>
+ <th scope="col"><code>animation-iteration-count</code></th>
+ <th scope="col">Letzte keyframe Regel</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code>normal</code></td>
+ <td>gerade oder ungerade</td>
+ <td><code>100%</code> oder <code>to</code></td>
+ </tr>
+ <tr>
+ <td><code>reverse</code></td>
+ <td>gerade oder ungerade</td>
+ <td><code>0%</code> oder <code>from</code></td>
+ </tr>
+ <tr>
+ <td><code>alternate</code></td>
+ <td>gerade</td>
+ <td><code>0%</code> oder <code>from</code></td>
+ </tr>
+ <tr>
+ <td><code>alternate</code></td>
+ <td>ungerade</td>
+ <td><code>100%</code> oder <code>to</code></td>
+ </tr>
+ <tr>
+ <td><code>alternate-reverse</code></td>
+ <td>gerade</td>
+ <td><code>100%</code> oder <code>to</code></td>
+ </tr>
+ <tr>
+ <td><code>alternate-reverse</code></td>
+ <td>ungerade</td>
+ <td><code>0%</code> oder <code>from</code></td>
+ </tr>
+ </tbody>
+ </table>
+ </dd>
+ <dt><code>backwards</code></dt>
+ <dd>Das Element nimmt die Werte des ersten Animationsschrittes an und behält diesen auch während der {{ cssxref("animation-delay") }} Zeit. {{ cssxref("animation-direction") }} wird wie folgt gehandhabt:
+ <table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col"><code>animation-direction</code></th>
+ <th scope="col">Erste keyframe Regel</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code>normal</code> oder <code>alternate</code></td>
+ <td><code>0%</code> oder <code>from</code></td>
+ </tr>
+ <tr>
+ <td><code>reverse</code> oder <code>alternate-reverse</code></td>
+ <td><code>100%</code> oder <code>to</code></td>
+ </tr>
+ </tbody>
+ </table>
+ </dd>
+ <dt><code>both</code></dt>
+ <dd>Vereint die Werte <span id="cke_bm_70S" style="display: none;"> </span><code>backwards</code><span id="cke_bm_70E" style="display: none;"> </span> und <code>forwards</code>.</dd>
+</dl>
+
+<h2 id="Beispiele">Beispiele</h2>
+
+<pre class="brush: css">h1 {
+ animation-fill-mode: forwards;
+}
+</pre>
+
+<h2 id="Specifications" name="Specifications">Spezifikation</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-fill-mode', 'animation-fill-mode') }}</td>
+ <td>{{ Spec2('CSS3 Animations') }}</td>
+ <td> </td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_Compatibility" name="Browser_Compatibility">Browser Kompatibilität</h2>
+
+<p>{{Compat("css.properties.animation-fill-mode")}}</p>
+
+<h2 id="Siehe_auch">Siehe auch</h2>
+
+<ul>
+ <li><a href="/en-US/docs/CSS/Tutorials/Using_CSS_animations" title="Tutorial about CSS animations">Using CSS animations</a></li>
+ <li>{{ domxref("AnimationEvent", "AnimationEvent") }}</li>
+</ul>