@@ -27,7 +27,7 @@ Previous Version: https://www.w3.org/TR/2012/WD-css3-animations-20120403/
2727Editor : Dean Jackson, Apple Inc., dino@apple.com, w3cid 42080
2828Editor : L. David Baron, Mozilla https://www.mozilla.org/, https://dbaron.org/, w3cid 15393
2929Editor : Tab Atkins Jr., Google, http://xanthir.com/contact/, w3cid 42199
30- Editor : Brian Birtles, Mozilla, bbirtles@mozilla.com , w3cid 43194
30+ Editor : Brian Birtles, Invited Expert, brian@birchill.co.jp , w3cid 43194
3131Former Editor : David Hyatt, Apple Inc.
3232Former Editor : Chris Marrin, Apple Inc.
3333Former Editor : Sylvain Galineau, Adobe, galineau@adobe.com
@@ -248,31 +248,31 @@ Keyframes</h2>
248248 so the first will be ignored:
249249
250250 <pre class=lang-css>
251- @keyframes foo { ... }
252- @keyframes "foo" { ... }
251+ @keyframes foo { /* ... */ }
252+ @keyframes "foo" { /* ... */ }
253253 </pre>
254254
255255 On the other hand,
256256 the following ''@keyframes'' rule's name is <em> different</em> from the previous two rules:
257257
258258 <pre class=lang-css>
259- @keyframes FOO { ... }
259+ @keyframes FOO { /* ... */ }
260260 </pre>
261261
262262 The following ''@keyframes'' rules are invalid
263263 because they use disallowed <<custom-ident>> values:
264264
265265 <pre class=lang-css>
266- @keyframes initial { ... }
267- @keyframes None { ... }
266+ @keyframes initial { /* ... */ }
267+ @keyframes None { /* ... */ }
268268 </pre>
269269
270- However, those names * can* be specified with a <<string>> ,
270+ However, those names <em> can</em> be specified with a <<string>> ,
271271 so the following are both <em> valid</em> :
272272
273273 <pre class=lang-css>
274- @keyframes "initial" { ... }
275- @keyframes "None" { ... }
274+ @keyframes "initial" { /* ... */ }
275+ @keyframes "None" { /* ... */ }
276276 </pre>
277277 </div>
278278
@@ -295,58 +295,62 @@ Keyframes</h2>
295295 the last one in document order wins,
296296 and all preceding ones are ignored.
297297
298- <div class='example'>
299- <pre>
300- div {
301- animation-name: slide-right;
302- animation-duration: 2s;
303- }
298+ <div class='example'>
299+ <pre>
300+ div {
301+ animation-name: slide-right;
302+ animation-duration: 2s;
303+ }
304304
305- @keyframes slide-right {
305+ @keyframes slide-right {
306306
307- from {
308- margin-left: 0px;
309- }
307+ from {
308+ margin-left: 0px;
309+ }
310310
311- 50% {
312- margin-left: 110px;
313- opacity: 1;
314- }
311+ 50% {
312+ margin-left: 110px;
313+ opacity: 1;
314+ }
315315
316- 50% {
317- opacity: 0.9;
318- }
316+ 50% {
317+ opacity: 0.9;
318+ }
319319
320- to {
321- margin-left: 200px;
322- }
320+ to {
321+ margin-left: 200px;
322+ }
323323
324- }
325- </pre>
324+ }
325+ </pre>
326326
327- At the 1s mark, the slide-right animation will have the same state as if we had defined the 50% rule like this:
327+ The two 50% rules from above can also be combined into an equivalent single rule
328+ as illustrated below:
328329
329- <pre>
330+ <pre>
330331
331- @keyframes slide-right {
332+ @keyframes slide-right {
332333
333- 50% {
334- margin-left: 110px;
335- opacity: 0.9;
336- }
334+ from {
335+ margin-left: 0px;
336+ }
337337
338- to {
339- margin-left: 200px;
340- }
338+ 50% {
339+ margin-left: 110px;
340+ opacity: 0.9;
341+ }
341342
342- }
343- </pre>
343+ to {
344+ margin-left: 200px;
345+ }
344346
345- </div>
347+ }
348+ </pre>
349+ </div>
346350
347351 To determine the set of keyframes, all of the values in the selectors are sorted in increasing order
348- by time. The rules within the @keyframes rule then cascade; the properties of a keyframe may thus derive
349- from more than one @keyframes rule with the same selector value.
352+ by time. The rules within the '' @keyframes'' rule then cascade; the properties of a keyframe may thus derive
353+ from more than one '' @keyframes'' rule with the same selector value.
350354
351355 If a property is not specified for a keyframe, or is specified but invalid, the animation of that
352356 property proceeds as if that keyframe did not exist. Conceptually, it is as if a set of keyframes is
@@ -509,26 +513,27 @@ The 'animation-duration' property</h3>
509513 Canonical order : per grammar
510514 </pre>
511515
512- <dl>
513- <dt> <dfn value for=animation-duration><<time>></dfn>
514- <dd>
515- The <<time>> specifies the length of time that an animation takes to complete one cycle.
516- A negative <<time>> is invalid.
517-
518- If the <<time>> is ''0s'' , like the initial value,
519- the keyframes of the animation have no effect,
520- but the animation itself still occurs instantaneously.
521- Specifically, start and end events are fired; if
522- 'animation-fill-mode' is set to ''backwards'' or
523- ''both'' , the first frame of the animation, as defined by
524- 'animation-direction' , will be displayed during the
525- 'animation-delay' . Then the last frame of the animation,
526- as defined by 'animation-direction' , will be displayed if
527- 'animation-fill-mode' is set to ''forwards'' or ''both'' . If
528- 'animation-fill-mode' is set to ''animation-fill-mode/none''
529- then the animation has no visible effect.
530- </dd>
531- </dl>
516+ <dl>
517+ <dt> <dfn value for=animation-duration><<time>></dfn>
518+ <dd>
519+ The <<time>> specifies the length of time that an animation takes to complete one cycle.
520+ A negative <<time>> is invalid.
521+
522+ If the <<time>> is ''0s'' , like the initial value,
523+ the keyframes of the animation have no effect,
524+ but the animation itself still occurs instantaneously.
525+ Specifically, start and end events are fired;
526+ if 'animation-fill-mode' is set to ''backwards'' or ''both'' ,
527+ the first frame of the animation,
528+ as defined by 'animation-direction' ,
529+ will be displayed during the 'animation-delay' .
530+ After the 'animation-delay' the last frame of the animation,
531+ as defined by 'animation-direction' ,
532+ will be displayed if 'animation-fill-mode' is set to ''forwards'' or ''both'' .
533+ If 'animation-fill-mode' is set to ''animation-fill-mode/none''
534+ the animation will have no visible effect.
535+ </dd>
536+ </dl>
532537
533538<h3 id="animation-timing-function">
534539The 'animation-timing-function' property</h3>
@@ -719,7 +724,7 @@ The 'animation-delay' property</h3>
719724 Initial : 0s
720725 Applies to : all elements
721726 Inherited : no
722- Animatable : no
727+ Animation type : not animatable
723728 Percentages : N/A
724729 Computed value : list, each item a duration
725730 Canonical order : per grammar
@@ -1156,9 +1161,10 @@ The <code>appendRule</code> method</h4>
11561161<h4 id="interface-csskeyframesrule-deleterule">
11571162The <code>deleteRule</code> method</h4>
11581163
1159- The <dfn method for="CSSKeyframesRule" lt="deleteRule(select)">deleteRule</dfn> method deletes the
1160- last declared {{CSSKeyframeRule}} matching the specified keyframe selector.
1161- If no matching rule exists, the method does nothing.
1164+ The <dfn method for="CSSKeyframesRule" lt="deleteRule(select)">deleteRule</dfn> method
1165+ deletes the last declared {{CSSKeyframeRule}}
1166+ matching the specified keyframe selector.
1167+ If no matching rule exists, the method does nothing.
11621168
11631169 Parameters:
11641170
0 commit comments