aboutsummaryrefslogtreecommitdiff
path: root/files/de/web/css/animation-fill-mode/index.html
blob: c4074a5655a23bde875a3064ed0f637eb4e22ffc (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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
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" class="hidden"> </span><code>backwards</code><span id="cke_bm_70E" class="hidden"> </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>