|
3 | 3 |
|
4 | 4 | <html lang=en> |
5 | 5 | <head> |
6 | | - <title>CSS Animations Module Level 3</title> |
| 6 | + <title>CSS Animations</title> |
7 | 7 | <link href=default.css rel=stylesheet type="text/css"> |
8 | 8 |
|
9 | 9 | <style type="text/css"> |
|
27 | 27 | <p><a href="http://www.w3.org/"><img alt=W3C height=48 |
28 | 28 | src="http://www.w3.org/Icons/w3c_home" width=72></a> <!--end-logo--> |
29 | 29 |
|
30 | | - <h1>CSS Animations Module Level 3</h1> |
| 30 | + <h1>CSS Animations</h1> |
31 | 31 |
|
32 | | - <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 20 January |
33 | | - 2011</h2> |
| 32 | + <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 5 April 2011</h2> |
34 | 33 |
|
35 | 34 | <dl> |
36 | 35 | <dt>This version: |
37 | 36 |
|
38 | 37 | <dd><a |
39 | | - href="http://www.w3.org/TR/2011/ED-css3-animations-20110120">http://dev.w3.org/csswg/css3-animations/</a> |
40 | | - <!--http://www.w3.org/TR/2011/WD-css3-animations-20110120--> |
| 38 | + href="http://www.w3.org/TR/2011/ED-css3-animations-20110405">http://dev.w3.org/csswg/css3-animations/</a> |
| 39 | + <!--http://www.w3.org/TR/2011/WD-css3-animations-20110405--> |
41 | 40 |
|
42 | 41 | <dt>Latest version: |
43 | 42 |
|
@@ -345,8 +344,6 @@ <h2 id=keyframes><span class=secno>3. </span>Keyframes</h2> |
345 | 344 | constructs a 100% keyframe using the computed values of the properties |
346 | 345 | being animated. |
347 | 346 |
|
348 | | - <p class=issue> ISSUE: how does this work with repeating animations? |
349 | | - |
350 | 347 | <p> The <i>keyframe declaration</i> for a keyframe rule consists of |
351 | 348 | properties and values. Properties that are unable to be animated are |
352 | 349 | ignored in these rules, with the exception of <a class=prop-name |
@@ -491,7 +488,15 @@ <h3 id=the-animation-name-property-><span class=secno>3.2. </span> The |
491 | 488 | animated and the animation will not execute. Furthermore, if the animation |
492 | 489 | name is ‘<code class=property>none</code>’ then there will be |
493 | 490 | no animation. This can be used to override any animations coming from the |
494 | | - cascade. |
| 491 | + cascade. If animations are attempting to modify the same property, then |
| 492 | + the animation closest to the end of the list of names wins. |
| 493 | + |
| 494 | + <p> Each animation listed by name should have a corresponding value for the |
| 495 | + other animation properties listed below. In the case where the other |
| 496 | + properties do not have lists of the correct length, their values are |
| 497 | + repeated to form a list with the same number of entries as <span |
| 498 | + class=prop-name>‘<a href="#animation-name"><code |
| 499 | + class=property>animation-name</code></a>’</span>. |
495 | 500 |
|
496 | 501 | <table class=propdef> |
497 | 502 | <tbody> |
@@ -1215,9 +1220,10 @@ <h2 id=animation-events-><span class=secno>4. </span> Animation Events</h2> |
1215 | 1220 |
|
1216 | 1221 | <dd> The amount of time the animation has been running, in seconds, |
1217 | 1222 | when this event fired, excluding any time the animation was paused. |
1218 | | - Note that this value is not affected by the value of <a |
1219 | | - class=prop-name href="#animation-delay">animation-delay</a>. For an |
1220 | | - "animationstart" event, the elapsedTime is always zero. |
| 1223 | + For an "animationstart" event, the elapsedTime is zero unless there |
| 1224 | + was a negative value for <a class=prop-name |
| 1225 | + href="#animation-delay">animation-delay</a>, in which case the event |
| 1226 | + will be fired with an elapsedTime of (-1 * delay). |
1221 | 1227 | </dl> |
1222 | 1228 |
|
1223 | 1229 | <dt> <b>Methods</b> |
@@ -1289,7 +1295,10 @@ <h2 id=animation-events-><span class=secno>4. </span> Animation Events</h2> |
1289 | 1295 | <dt> <b>animationstart</b> |
1290 | 1296 |
|
1291 | 1297 | <dd> The ‘<code class=property>animationstart</code>’ event |
1292 | | - occurs at the start of the animation |
| 1298 | + occurs at the start of the animation. If there is an <a class=prop-name |
| 1299 | + href="#animation-delay">animation-delay</a> then this event will fire |
| 1300 | + once the delay period has expired. A negative delay will cause the event |
| 1301 | + to fire with an elapsedTime equal to the absolute value of the delay. |
1293 | 1302 | <ul> |
1294 | 1303 | <li>Bubbles: Yes |
1295 | 1304 |
|
@@ -1427,7 +1436,7 @@ <h2 id=dom-interfaces-><span class=secno>5. </span> DOM Interfaces</h2> |
1427 | 1436 | attribute DOMString name; |
1428 | 1437 | readonly attribute CSSRuleList cssRules; |
1429 | 1438 |
|
1430 | | - void insertRule(in DOMString rule); |
| 1439 | + void appendRule(in DOMString rule); |
1431 | 1440 | void deleteRule(in DOMString key); |
1432 | 1441 | CSSKeyframeRule findRule(in DOMString key); |
1433 | 1442 | }; |
@@ -1461,23 +1470,20 @@ <h2 id=dom-interfaces-><span class=secno>5. </span> DOM Interfaces</h2> |
1461 | 1470 | <dd> |
1462 | 1471 | <dl><!-- ======================================================================================================= --> |
1463 | 1472 |
|
1464 | | - <dt> <code class=method-name><a id=DOM-CSSKeyframesRule-insertRule |
1465 | | - name=DOM-CSSKeyframesRule-insertRule>insertRule</a></code> |
| 1473 | + <dt> <code class=method-name><a id=DOM-CSSKeyframesRule-appendRule |
| 1474 | + name=DOM-CSSKeyframesRule-appendRule>appendRule</a></code> |
1466 | 1475 |
|
1467 | 1476 | <dd> |
1468 | | - <div class=method> The <code>insertRule</code> method inserts the |
| 1477 | + <div class=method> The <code>appendRule</code> method appends the |
1469 | 1478 | passed CSSKeyframeRule into the list at the passed key. |
1470 | 1479 | <div class=parameters> <b>Parameters</b> |
1471 | 1480 | <div class=paramtable> |
1472 | 1481 | <dl> |
1473 | 1482 | <dt> <code class=parameter-name>rule</code> of type |
1474 | 1483 | <code>DOMString</code> |
1475 | 1484 |
|
1476 | | - <dd> The rule to be inserted, expressed in the same syntax as one |
1477 | | - entry in the <code>@keyframes</code> rule. The key is included |
1478 | | - in the rule string, which described the point at which the rule |
1479 | | - should be inserted. If a rule with the same key already exists |
1480 | | - in the list, it is replaced with this rule. |
| 1485 | + <dd> The rule to be appended, expressed in the same syntax as one |
| 1486 | + entry in the <code>@keyframes</code> rule. |
1481 | 1487 | </dl> |
1482 | 1488 | </div> |
1483 | 1489 | </div> |
|
0 commit comments