You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>CSS Animations allow an author to modify CSS property values over
60
-
time.
59
+
<p>This CSS module describes a way for authors to animate the values of CSS properties over time, using keyframes.
60
+
The behavior of these keyframe animations can be controlled by specifying their duration, number of repeats,
61
+
and repeating behavior.
62
+
</p>
61
63
62
64
<h2class="no-num no-toc" id="status">Status of this document</h2>
63
65
<!--status-->
@@ -69,21 +71,28 @@ <h2 class="no-num no-toc" id="contents">Table of contents</h2>
69
71
70
72
<h2id="introduction">Introduction</h2>
71
73
72
-
<p><em>This section is not normative.</em>
73
-
74
-
<p>
75
-
This document introduces new CSS features to enable animation.
76
-
</p>
77
-
<p>
78
-
Animation is currently possible in languages like SVG, but no system exists for the native animation of CSS styles. This proposal introduces <em>defined animations</em>, which specify the values that CSS properties will take over a given time interval.
79
-
</p>
80
-
<p>
81
-
This specification is an extension to CSS Transitions
82
-
[[!CSS3-TRANSITIONS]].
83
-
</p>
84
-
<h2>
85
-
Keyframes
86
-
</h2>
74
+
<p><em>This section is not normative.</em>
75
+
76
+
<p>
77
+
CSS Transitions [[!CSS3-TRANSITIONS]] provide a way to interpolate CSS property values
78
+
when they change as a result of underlying property changes. This provides an easy way to do simple animation,
79
+
but the start and end states of the animation are controlled by the existing property values,
80
+
and transitions provide little control to the author on how the animation progresses.
81
+
</p>
82
+
<p>
83
+
This proposal introduces <em>defined animations</em>, in which the author can
84
+
specify the changes in CSS properties over time as a set of keyframes. Unlike transitions, which
85
+
are triggered by changes in the underlying property values, keyframe animations are
86
+
triggered by the application of the animation properties themselves. While the animation
87
+
is running, the property values in the keyframes are applied at the appropriate times.
88
+
</p>
89
+
<p>
90
+
CSS Animations also provide greater control over the animation behavior than transitions.
91
+
Animation properties allow the author to control how may times the animation repeats, the behavior
92
+
when repeating, and to pause the animation mid-cycle.
93
+
</p>
94
+
95
+
<h2>Keyframes</h2>
87
96
<p>
88
97
In a simple transition, since both the starting value and ending value
89
98
are known, a single timing function and duration determine the
0 commit comments