Mon, 06 May 2013 17:23:49 -0700
[css-transitions][css-animations] Define initial values of event properties. (Using the initializers in the init dict is not sufficient because of CreateEvent.) Also fix link to DOM Core.
1 <!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01//EN'
2 'http://www.w3.org/TR/html4/strict.dtd'>
4 <html lang="en">
5 <head>
6 <title>CSS Transitions</title>
7 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8 <link rel="stylesheet" type="text/css" href="../default.css">
9 <style type="text/css">
10 table.animatable-properties {
11 border-collapse: collapse;
12 }
13 table.animatable-properties td {
14 padding: 0.2em 1em;
15 border: 1px solid black;
16 }
17 div.prod { margin: 1em 2em; }
18 </style>
19 <link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-[STATUS].css">
20 </head>
22 <body>
24 <div class="head">
25 <!--logo-->
27 <h1>CSS Transitions</h1>
29 <h2 class="no-num no-toc">[LONGSTATUS] [DATE]</h2>
30 <dl>
31 <dt>This version:
32 <dd>
33 <a href="[VERSION]">[VERSION]</a>
34 <dt>Latest version:
35 <dd><a href="http://www.w3.org/TR/css3-transitions/">
36 [LATEST]</a>
37 <dt>Editor's draft:
38 <dd><a href="http://dev.w3.org/csswg/[SHORTNAME]/">http://dev.w3.org/csswg/[SHORTNAME]/</a>
39 (<a href="https://dvcs.w3.org/hg/csswg/log/tip/css-transitions/Overview.src.html">change log</a>,
40 <a href="https://dvcs.w3.org/hg/csswg/log/tip/css3-transitions/Overview.src.html">older change log</a>)
41 <dt>Previous version:
42 <dd><a href="http://www.w3.org/TR/2013/WD-css3-transitions-20130212/">http://www.w3.org/TR/2013/WD-css3-transitions-20130212/</a>
43 <dt id="editors-list">Editors:
44 <dd><a href="mailto:dino@apple.com">Dean Jackson</a> (<a
45 href="http://www.apple.com/">Apple Inc</a>)
46 <dd><a href="mailto:hyatt@apple.com">David Hyatt</a> (<a
47 href="http://www.apple.com/">Apple Inc</a>)
48 <dd><a href="mailto:cmarrin@apple.com">Chris Marrin</a> (<a
49 href="http://www.apple.com/">Apple Inc</a>)
50 <dd class=vcard><a class=fn href="http://dbaron.org/">L. David Baron</a> (<a
51 class=org href="http://www.mozilla.org/">Mozilla</a>)
53 <dt>Issues list:
54 <dd><a href="https://www.w3.org/Bugs/Public/buglist.cgi?query_format=advanced&product=CSS&component=Transitions&resolution=---&cmdtype=doit">in Bugzilla</a>
56 <dt>Feedback:
57 <dd><a href="mailto:www-style@w3.org?subject=%5Bcss-transitions%5D%20feedback">www-style@w3.org</a>
58 with subject line “<kbd>[css-transitions] <var>… message topic …</var></kbd>”
59 (<a rel="discussion" href="http://lists.w3.org/Archives/Public/www-style/">archives</a>)
61 <dt>Test suite:
62 <dd>none yet
63 </dl>
65 <!--copyright-->
67 <hr title="Separator for header">
68 </div>
70 <h2 class="no-num no-toc" id="abstract">Abstract</h2>
72 <p>CSS Transitions allows property changes in CSS values to occur smoothly
73 over a specified duration.
75 <h2 class="no-num no-toc" id="status">Status of this document</h2>
76 <!--status-->
78 <p>
79 The <a href="ChangeLog">list of changes made to this specification</a> is
80 available.
81 </p>
83 <h2 class="no-num no-toc" id="contents">Table of Contents</h2>
84 <!--toc-->
87 <h2 id="introduction">Introduction</h2>
89 <p><em>This section is not normative.</em>
90 <p>
91 This document introduces new CSS features to enable <em>implicit transitions</em>, which describe how CSS properties can be made to change smoothly from one value to another over a given duration.
92 </p>
94 <h2 id="transitions"><a id="transitions-">Transitions</a></h2>
95 <p>
96 Normally when the value of a CSS property changes, the rendered result is instantly updated, with the affected elements immediately changing from the old property value to the new property value. This section describes a way to specify transitions using new CSS properties. These properties are used to animate smoothly from the old state to the new state over time.
97 </p>
98 <p>
99 For example, suppose that transitions of one second have been defined on the 'left' and
100 'background-color' properties. The following diagram illustrates the effect of updating those properties on an element, in this case moving it to the right and changing the background from red to blue. This assumes other transition parameters still have their default values.
101 </p>
102 <div class="figure">
103 <img src="transition1.png" alt="">
104 </div>
105 <p class="caption">
106 Transitions of 'left' and 'background-color'
107 </p>
108 <p>
109 Transitions are a presentational effect. The computed value of a property transitions over time from the old value to the new value. Therefore if a script queries the computed style of a property as it is transitioning, it will see an intermediate value that represents the current animated value of the property.
110 </p>
111 <p>
112 Only animatable CSS properties can be transitioned. See the table at the end of this document for a list
113 of properties that are animatable.
114 </p>
115 <p>
116 The transition for a property is defined using a number of new properties. For example:
117 </p>
118 <div class="example">
119 <p style="display:none">
120 Example(s):
121 </p>
122 <pre>
123 div {
124 transition-property: opacity;
125 transition-duration: 2s;
126 }
127 </pre>The above example defines a transition on the 'opacity' property that, when a new value is assigned to it, will cause a smooth change between the old value and the new value over a period of two seconds.
128 </div>
129 <p>
130 Each of the transition properties accepts a comma-separated list, allowing multiple transitions to be defined, each acting on a different property. In this case, the individual transitions take their parameters from the same index in all the lists. For example:
131 </p>
132 <div class="example">
133 <p style="display:none">
134 Example(s):
135 </p>
136 <pre>
137 div {
138 transition-property: opacity, left;
139 transition-duration: 2s, 4s;
140 }
142 </pre>This will cause the 'opacity' property to transition over a period of two seconds and the left property to transition over a period of four seconds.
143 </div>
145 <p id="list-matching">
146 In the case where the lists of values in transition properties
147 do not have the same length, the length of the
148 'transition-property' list determines the number of items in
149 each list examined when starting transitions. The lists are
150 matched up from the first value: excess values at the end are
151 not used. If one of the other properties doesn't have enough
152 comma-separated values to match the number of values of
153 'transition-property', the UA must calculate its used value by
154 repeating the list of values until there are enough. This
155 truncation or repetition does not affect the computed value.
156 <span class="note">
157 Note: This is analogous to the behavior of the 'background-*'
158 properties, with 'background-image' analogous to
159 'transition-property'.
160 </span>
161 </p>
163 <div class="example">
164 <p style="display:none">
165 Example(s):
166 </p>
167 <pre>
168 div {
169 transition-property: opacity, left, top, width;
170 transition-duration: 2s, 1s;
171 }
172 </pre>The above example defines a transition on the 'opacity' property of 2 seconds duration, a
173 transition on the 'left' property of 1
174 second duration, a transition on the 'top' property of 2 seconds duration and a
175 transition on the 'width' property of 1
176 second duration.
178 </div>
180 <p>
181 While authors can use transitions to create dynamically changing content,
182 dynamically changing content can lead to seizures in some users.
183 For information on how to avoid content that can lead to seizures, see
184 <a href="http://www.w3.org/TR/WCAG20/#seizure">Guideline 2.3:
185 Seizures:
186 Do not design content in a way that is known to cause seizures</a>
187 ([[WCAG20]]).
188 </p>
190 <!-- ======================================================================================================= -->
191 <h3 id="transition-property-property"><a id="the-transition-property-property-">
192 The 'transition-property' Property
193 </a></h3>
194 <p>
195 The 'transition-property' property specifies the name of the CSS property to which the transition is applied.
196 </p>
197 <table class="propdef">
198 <tbody>
199 <tr>
200 <td>
201 <em>Name:</em>
202 </td>
203 <td>
204 <dfn id="transition-property">transition-property</dfn>
205 </td>
206 </tr>
207 <tr>
208 <td>
209 <em>Value:</em>
210 </td>
211 <td>
212 none | <span><single-transition-property></span> [ ',' <span><single-transition-property></span> ]*
213 </td>
214 </tr>
215 <tr>
216 <td>
217 <em>Initial:</em>
218 </td>
219 <td>
220 all
221 </td>
222 </tr>
223 <tr>
224 <td>
225 <em>Applies to:</em>
226 </td>
227 <td>
228 all elements, :before and :after pseudo elements
229 </td>
230 </tr>
231 <tr>
232 <td>
233 <em>Inherited:</em>
234 </td>
235 <td>
236 no
237 </td>
238 </tr>
239 <tr>
240 <td>
241 <em>Animatable:</em>
242 </td>
243 <td>
244 no
245 </td>
246 </tr>
247 <tr>
248 <td>
249 <em>Percentages:</em>
250 </td>
251 <td>
252 N/A
253 </td>
254 </tr>
255 <tr>
256 <td>
257 <em>Media:</em>
258 </td>
259 <td>
260 visual
261 </td>
262 </tr>
263 <tr>
264 <td>
265 <em>Computed value:</em>
266 </td>
267 <td>
268 Same as specified value.
269 </td>
270 </tr>
271 <tr>
272 <td>
273 <em>Canonical order:</em>
274 </td>
275 <td>
276 <abbr title="follows order of property value definition">per grammar</abbr>
277 </td>
278 </tr>
279 </tbody>
280 </table>
282 <div class="prod">
283 <dfn id="single-transition-property"><single-transition-property></dfn> = all | <IDENT>
284 </div>
286 <p>
287 A value of ''none'' means that no property will transition.
288 Otherwise, a list of properties to be transitioned, or the
289 keyword ''all'' which indicates that all properties are to be
290 transitioned, is given.
291 </p>
293 <p>
294 If one of the identifiers listed is not a recognized property
295 name or is not an animatable property, the implementation must
296 still start transitions on the animatable properties in the
297 list using the duration, delay, and timing function at their
298 respective indices in the lists for 'transition-duration',
299 'transition-delay', and 'transition-timing-function'. In other
300 words, unrecognized or non-animatable properties must be kept in
301 the list to preserve the matching of indices.
302 </p>
304 <p>
305 The keywords ''none'', ''inherit'', and ''initial'' are not
306 permitted as items within a list of more that one identifier;
307 any list that uses them is syntactically invalid.
308 In other words, the <IDENT> production in
309 <span><single-transition-property></span> matches any
310 identifier other than these three keywords.
311 </p>
313 <p>
314 For the keyword ''all'', or if one of the identifiers listed is a
315 shorthand property, implementations must start transitions for
316 any of its longhand sub-properties that are animatable (or, for
317 ''all'', all animatable properties), using the duration, delay,
318 and timing function at the index corresponding to the shorthand.
319 </p>
320 <p>
321 If a property is specified multiple times in the value of
322 'transition-property' (either on its own, via a shorthand that
323 contains it, or via the ''all'' value), then the transition that
324 starts uses the duration, delay, and timing function at the
325 index corresponding to the <em>last</em> item in the value of
326 'transition-property' that calls for animating that property.
327 </p>
328 <p class="note">
329 Note: The ''all'' value and 'all' shorthand
330 property work in similar ways, so the
331 ''all'' value is just like a shorthand that
332 covers all properties.
333 </p>
335 <!-- ======================================================================================================= -->
336 <h3 id="transition-duration-property"><a id="the-transition-duration-property-">
337 The 'transition-duration' Property
338 </a></h3>
339 <p>
340 The 'transition-duration' property defines the length of time that a transition takes.
341 </p>
342 <table class="propdef">
343 <tbody>
344 <tr>
345 <td>
346 <em>Name:</em>
347 </td>
348 <td>
349 <dfn id="transition-duration">transition-duration</dfn>
350 </td>
351 </tr>
352 <tr>
353 <td>
354 <em>Value:</em>
355 </td>
356 <td>
357 <span><time></span> [, <span><time></span>]*
358 </td>
359 </tr>
360 <tr>
361 <td>
362 <em>Initial:</em>
363 </td>
364 <td>
365 0s
366 </td>
367 </tr>
368 <tr>
369 <td>
370 <em>Applies to:</em>
371 </td>
372 <td>
373 all elements, :before and :after pseudo elements
374 </td>
375 </tr>
376 <tr>
377 <td>
378 <em>Inherited:</em>
379 </td>
380 <td>
381 no
382 </td>
383 </tr>
384 <tr>
385 <td>
386 <em>Animatable:</em>
387 </td>
388 <td>
389 no
390 </td>
391 </tr>
392 <tr>
393 <td>
394 <em>Percentages:</em>
395 </td>
396 <td>
397 N/A
398 </td>
399 </tr>
400 <tr>
401 <td>
402 <em>Media:</em>
403 </td>
404 <td>
405 interactive
406 </td>
407 </tr>
408 <tr>
409 <td>
410 <em>Computed value:</em>
411 </td>
412 <td>
413 Same as specified value.
414 </td>
415 </tr>
416 <tr>
417 <td>
418 <em>Canonical order:</em>
419 </td>
420 <td>
421 <abbr title="follows order of property value definition">per grammar</abbr>
422 </td>
423 </tr>
424 </tbody>
425 </table>
426 <p>
427 This property specifies how long the transition from the old value to the new value should take. By default the value is ''0s'', meaning that the transition is immediate (i.e. there will be no animation). A negative value for 'transition-duration' renders the declaration invalid.
428 </p>
430 <!-- =======================================================================================================
431 -->
433 <h3 id="transition-timing-function-property"><a id="transition-timing-function_tag">
434 The 'transition-timing-function' Property
435 </a></h3>
436 <p>
437 The 'transition-timing-function' property
438 describes how the intermediate values used during a transition will be
439 calculated. It allows for a transition to change speed over its
440 duration. These effects are commonly called <em>easing</em> functions.
441 In either case, a mathematical function that provides a smooth curve is
442 used.
443 </p>
444 <p>
445 Timing functions are either defined as a stepping function or
446 a <a
447 href="http://en.wikipedia.org/wiki/B%C3%A9zier_curve#Cubic_B.C3.A9zier_curves">cubic
448 Bézier curve</a>.
449 The timing function takes as its input
450 the current elapsed percentage of the transition duration
451 and outputs the percentage of the way the transition is
452 from its start value to its end value.
453 How this output is used is defined by
454 the <a href="#animatable-types">interpolation rules</a>
455 for the value type.
456 </p>
457 <p>
458 A <a href="http://en.wikipedia.org/wiki/Step_function">stepping</a>
459 function is defined by a number that divides the domain of operation
460 into equally sized intervals. Each subsequent interval is a equal step
461 closer to the goal state. The function also specifies whether the
462 change in output percentage happens at the start or end of the
463 interval (in other words, if 0% on the input percentage is the point
464 of initial change).
465 </p>
466 <div class="figure">
467 <img src="step.png" alt="The step timing function splits
468 the function domain into a number of disjoint straight line
469 segments. steps(1, start) is a function whose
470 output value is 1 for all input values. steps(1, end) is a function whose
471 output value is 0 for all input values less than 1, and output
472 is 1 for the input value of 1. steps(3, start) is a function that
473 divides the input domain into three segments, each 1/3 in length,
474 and 1/3 above the previous segment, with the first segment starting
475 at 1/3. steps(3, end) is a function that
476 divides the input domain into three segments, each 1/3 in length,
477 and 1/3 above the previous segment, with the first segment starting
478 at 0.">
479 </div>
480 <p class="caption">
481 Step timing functions
482 </p>
483 <p>
484 A <a
485 href="http://en.wikipedia.org/wiki/B%C3%A9zier_curve#Cubic_B.C3.A9zier_curves">cubic
486 Bézier curve</a> is defined by four control points, P<sub>0</sub>
487 through P<sub>3</sub> (see Figure 1). P<sub>0</sub> and P<sub>3</sub>
488 are always set to (0,0) and (1,1). The 'transition-timing-function' property is used
489 to specify the values for points P<sub>1</sub> and P<sub>2</sub>. These
490 can be set to preset values using the keywords listed below, or can be
491 set to specific values using the ''cubic-bezier'' function.
492 In the ''cubic-bezier'' function, P<sub>1</sub> and
493 P<sub>2</sub> are each specified by both an X and Y value.
494 </p>
495 <div class="figure">
496 <img src="TimingFunction.png" alt="The Bézier timing function is a
497 smooth curve from point P0 = (0,0) to point P3 = (1,1). The
498 length and orientation of the line segment P0-P1 determines
499 the tangent and the curvature of the curve at P0 and the
500 line segment P2-P3 does the same at P3.">
501 </div>
502 <p class="caption">
503 Bézier Timing Function Control Points
504 </p>
505 <table class="propdef">
506 <tbody>
507 <tr>
508 <td>
509 <em>Name:</em>
510 </td>
511 <td>
512 <dfn id="transition-timing-function">transition-timing-function</dfn>
513 </td>
514 </tr>
515 <tr>
516 <td>
517 <em>Value:</em>
518 </td>
519 <td>
520 <span><single-transition-timing-function></span> [ ',' <span><single-transition-timing-function></span> ]*
521 </td>
522 </tr>
523 <tr>
524 <td>
525 <em>Initial:</em>
526 </td>
527 <td>
528 ease
529 </td>
530 </tr>
531 <tr>
532 <td>
533 <em>Applies to:</em>
534 </td>
535 <td>
536 all elements, :before and :after pseudo elements
537 </td>
538 </tr>
539 <tr>
540 <td>
541 <em>Inherited:</em>
542 </td>
543 <td>
544 no
545 </td>
546 </tr>
547 <tr>
548 <td>
549 <em>Animatable:</em>
550 </td>
551 <td>
552 no
553 </td>
554 </tr>
555 <tr>
556 <td>
557 <em>Percentages:</em>
558 </td>
559 <td>
560 N/A
561 </td>
562 </tr>
563 <tr>
564 <td>
565 <em>Media:</em>
566 </td>
567 <td>
568 interactive
569 </td>
570 </tr>
571 <tr>
572 <td>
573 <em>Computed value:</em>
574 </td>
575 <td>
576 Same as specified value.
577 </td>
578 </tr>
579 <tr>
580 <td>
581 <em>Canonical order:</em>
582 </td>
583 <td>
584 <abbr title="follows order of property value definition">per grammar</abbr>
585 </td>
586 </tr>
587 </tbody>
588 </table>
589 <div class="prod">
590 <dfn id="single-transition-timing-function"><single-transition-timing-function></dfn> = ease | linear | ease-in | ease-out | ease-in-out | step-start | step-end | steps(<integer>[, [ start | end ] ]?) | cubic-bezier(<number>, <number>, <number>, <number>)
591 </div>
592 <p>
593 The timing functions have the following definitions.
594 </p>
595 <dl>
596 <dt>
597 ease
598 </dt>
599 <dd>
600 The ease function is equivalent to cubic-bezier(0.25, 0.1, 0.25, 1).
601 </dd>
602 <dt>
603 linear
604 </dt>
605 <dd>
606 The linear function is equivalent to cubic-bezier(0, 0, 1, 1).
607 </dd>
608 <dt>
609 ease-in
610 </dt>
611 <dd>
612 The ease-in function is equivalent to cubic-bezier(0.42, 0, 1, 1).
613 </dd>
614 <dt>
615 ease-out
616 </dt>
617 <dd>
618 The ease-out function is equivalent to cubic-bezier(0, 0, 0.58, 1).
619 </dd>
620 <dt>
621 ease-in-out
622 </dt>
623 <dd>
624 The ease-in-out function is equivalent to cubic-bezier(0.42, 0, 0.58, 1)
625 </dd>
626 <dt>
627 step-start
628 </dt>
629 <dd>
630 The step-start function is equivalent to steps(1, start).
631 </dd>
632 <dt>
633 step-end
634 </dt>
635 <dd>
636 The step-end function is equivalent to steps(1, end).
637 </dd>
638 <dt>
639 steps(<integer>[, [ start | end ] ]?)
640 </dt>
641 <dd>
642 Specifies a stepping function, described above, taking two
643 parameters. The first parameter specifies the number of intervals
644 in the function. It must be a positive integer (greater than 0).
645 The second parameter, which is optional, is
646 either the value ''start'' or ''end'', and specifies the point
647 at which the change of values occur within the interval.
648 If the second parameter is omitted, it is given the value 'end'.
649 </dd>
650 <dt>
651 cubic-bezier(<number>, <number>, <number>, <number>)
652 </dt>
653 <dd>
654 Specifies a <a
655 href="http://en.wikipedia.org/wiki/B%C3%A9zier_curve">cubic-bezier
656 curve</a>. The four values specify points P<sub>1</sub> and
657 P<sub>2</sub> of the curve as (x1, y1, x2, y2). Both x values must be
658 in the range [0, 1] or the definition is invalid. The y values can
659 exceed this range.
660 </dd>
661 </dl><!-- ======================================================================================================= -->
662 <h3 id="transition-delay-property"><a id="the-transition-delay-property-">
663 The 'transition-delay' Property
664 </a></h3>
665 <p>
666 The 'transition-delay' property defines when the transition will start. It allows a transition to begin execution some some period of time from when it is applied. A 'transition-delay' value of ''0s'' means the transition will execute as soon as the property is changed. Otherwise, the value specifies an offset from the moment the property is changed, and the transition will delay execution by that offset.
667 </p>
668 <p>
669 If the value for 'transition-delay' is a negative time offset then the transition will execute the moment the property is changed, but will appear to have begun execution at the specified offset. That is, the transition will appear to begin part-way through its play cycle. In the case where a transition has implied starting values and a negative 'transition-delay', the starting values are taken from the moment the property is changed.
670 </p>
671 <table class="propdef">
672 <tbody>
673 <tr>
674 <td>
675 <em>Name:</em>
676 </td>
677 <td>
678 <dfn id="transition-delay">transition-delay</dfn>
679 </td>
680 </tr>
681 <tr>
682 <td>
683 <em>Value:</em>
684 </td>
685 <td>
686 <span><time></span> [, <span><time></span>]*
687 </td>
688 </tr>
689 <tr>
690 <td>
691 <em>Initial:</em>
692 </td>
693 <td>
694 0s
695 </td>
696 </tr>
697 <tr>
698 <td>
699 <em>Applies to:</em>
700 </td>
701 <td>
702 all elements, :before and :after pseudo elements
703 </td>
704 </tr>
705 <tr>
706 <td>
707 <em>Inherited:</em>
708 </td>
709 <td>
710 no
711 </td>
712 </tr>
713 <tr>
714 <td>
715 <em>Animatable:</em>
716 </td>
717 <td>
718 no
719 </td>
720 </tr>
721 <tr>
722 <td>
723 <em>Percentages:</em>
724 </td>
725 <td>
726 N/A
727 </td>
728 </tr>
729 <tr>
730 <td>
731 <em>Media:</em>
732 </td>
733 <td>
734 interactive
735 </td>
736 </tr>
737 <tr>
738 <td>
739 <em>Computed value:</em>
740 </td>
741 <td>
742 Same as specified value.
743 </td>
744 </tr>
745 <tr>
746 <td>
747 <em>Canonical order:</em>
748 </td>
749 <td>
750 <abbr title="follows order of property value definition">per grammar</abbr>
751 </td>
752 </tr>
753 </tbody>
754 </table><!-- ======================================================================================================= -->
755 <h3 id="transition-shorthand-property"><a id="the-transition-shorthand-property-">
756 The 'transition' Shorthand Property
757 </a></h3>
758 <p>
759 The 'transition' shorthand property combines the four properties described above into a single property.
760 </p>
761 <table class="propdef">
762 <tbody>
763 <tr>
764 <td>
765 <em>Name:</em>
766 </td>
767 <td>
768 <dfn id="transition">transition</dfn>
769 </td>
770 </tr>
771 <tr>
772 <td>
773 <em>Value:</em>
774 </td>
775 <td>
776 <span><single-transition></span> [ ',' <span><single-transition></span> ]*
777 </td>
778 </tr>
779 <tr>
780 <td>
781 <em>Initial:</em>
782 </td>
783 <td>
784 see individual properties
785 </td>
786 </tr>
787 <tr>
788 <td>
789 <em>Applies to:</em>
790 </td>
791 <td>
792 all elements, :before and :after pseudo elements
793 </td>
794 </tr>
795 <tr>
796 <td>
797 <em>Inherited:</em>
798 </td>
799 <td>
800 no
801 </td>
802 </tr>
803 <tr>
804 <td>
805 <em>Animatable:</em>
806 </td>
807 <td>
808 no
809 </td>
810 </tr>
811 <tr>
812 <td>
813 <em>Percentages:</em>
814 </td>
815 <td>
816 N/A
817 </td>
818 </tr>
819 <tr>
820 <td>
821 <em>Media:</em>
822 </td>
823 <td>
824 interactive
825 </td>
826 </tr>
827 <tr>
828 <td>
829 <em>Computed value:</em>
830 </td>
831 <td>
832 see individual properties
833 </td>
834 </tr>
835 <tr>
836 <td>
837 <em>Canonical order:</em>
838 </td>
839 <td>
840 <abbr title="follows order of property value definition">per grammar</abbr>
841 </td>
842 </tr>
843 </tbody>
844 </table>
846 <div class="prod">
847 <dfn id="single-transition"><single-transition></dfn> = [ none | <span><single-transition-property></span> ] || <span><time></span> || <span><single-transition-timing-function></span> || <span><time></span>
848 </div>
850 <p>
851 Note that order is important within the items in this property:
852 the first value that can be parsed as a time is assigned to the
853 transition-duration,
854 and the second value that can be parsed as a time is assigned to
855 transition-delay.
856 </p>
858 <p>
859 If there is more than one <span><single-transition></span> in the shorthand,
860 and any of the transitions has
861 ''none'' as the <span><single-transition-property></span>,
862 then the declaration is invalid.
863 </p>
865 <h2 id="starting">
866 Starting of transitions
867 </h2>
869 <p>
870 When the computed value of an animatable property changes,
871 implementations must decide what transitions to start based on
872 the values of the 'transition-property', 'transition-duration',
873 'transition-timing-function', and 'transition-delay' properties
874 at the time the animatable property would first have its new
875 computed value.
876 This means that when one of these 'transition-*' properties
877 changes at the same time as
878 a property whose change might transition,
879 it is the <em>new</em> values of the 'transition-*' properties
880 that control the transition.
881 </p>
882 <div class="example" id="manual-reversing-example">
883 <p style="display:none">
884 Example(s):
885 </p>
886 <p>This provides a way for authors to specify different values
887 of the 'transition-*' properties for the “forward”
888 and “reverse” transitions (but see <a
889 href="#reversing">below</a> for special reversing behavior when
890 an <em>incomplete</em> transition is interrupted). Authors can
891 specify the value of 'transition-duration',
892 'transition-timing-function', or 'transition-delay' in the same
893 rule where they specify the value that triggers the transition,
894 or can change these properties at the same time as they change
895 the property that triggers the transition. Since it's the new
896 values of these 'transition-*' properties that affect the
897 transition, these values will be used for the transitions
898 <em>to</em> the associated transitioning values. For example:
899 </p>
900 <pre>li {
901 transition: background-color linear 1s;
902 background: blue;
903 }
904 li:hover {
905 background-color: green;
906 transition-duration: 2s; /* applies to the transition *to* the :hover state */
907 }</pre>
908 <p>
909 When a list item with these style rules enters the :hover
910 state, the computed 'transition-duration' at the time that
911 'background-color' would have its new value (''green'') is ''2s'',
912 so the transition from 'blue' to 'green' takes 2 seconds.
913 However, when the list item leaves the :hover state, the
914 transition from ''green'' to ''blue'' takes 1 second.
915 </p>
916 </div>
918 <p>
919 When the computed value of a property changes, implementations
920 must start transitions based on the relevant item (see <a
921 href="#transition-property">the definition of
922 'transition-property'</a>) in the computed value of
923 'transition-property'.
924 Corresponding to this item there are
925 computed values of 'transition-duration' and 'transition-delay'
926 (see <a href="#list-matching">the rules on matching lists</a>).
927 Define the <dfn>combined duration</dfn> of the transition
928 as the sum of max('transition-duration', ''0s'') and 'transition-delay'.
929 When the combined duration is greater than ''0s'',
930 then a transition starts based on the values of
931 'transition-duration', 'transition-delay',
932 and 'transition-timing-function';
933 in other cases transitions do not occur.
934 </p>
936 <p>
937 Since this specification does not define
938 when computed values change, and thus what changes to
939 computed values are considered simultaneous,
940 authors should be aware that changing any of the transition
941 properties a small amount of time after making a change that
942 might transition can result in behavior that varies between
943 implementations, since the changes might be considered
944 simultaneous in some implementations but not others.
945 </p>
947 <p>
948 Once the transition of a property has started, it must continue
949 running based on the original timing function, duration, and
950 delay, even if the 'transition-timing-function',
951 'transition-duration', or 'transition-delay' property changes
952 before the transition is complete. However, if the
953 'transition-property' property changes such that the transition
954 would not have started, the transition must stop (and the
955 property must immediately change to its final value).
956 </p>
958 <p>
959 Implementations must not start a transition when the computed
960 value of a property changes as a result of declarative animation
961 (as opposed to scripted animation).
962 </p>
964 <p>
965 Implementations also must not start a transition when the
966 computed value changes because it is inherited (directly or
967 indirectly) from another element that is transitioning the same
968 property.
969 </p>
971 <h2 id="reversing">
972 Automatically reversing interrupted transitions
973 </h2>
974 <p>
975 A common type of transition effect is when a running transition is
976 interrupted and the property is reset to its original value. An
977 example is a hover effect on an element, where the pointer enters and
978 exits the element before the effect has completed. If the outgoing and
979 incoming transitions are executed using their specified durations and
980 timing functions, the resulting effect can be distractingly
981 asymmetric. Instead, the expected behavior is that the new transition
982 should be the reverse of what has already executed.
983 </p>
985 <p>
986 If a running transition with duration T, executing so far for duration TE,
987 from state A, to state B, is interrupted by
988 a property change that would start a new transition back to state A, and
989 all the transition attributes are the same (duration, delay and timing function),
990 then the new transition must reverse the effect. The new transition must:
991 </p>
993 <ol>
994 <li>
995 Use the B and A states as its "from" and "to" states respectively. It
996 does not use the current value as its from state, due to the rules below.
997 </li>
998 <li>
999 Execute with the same duration T, but starting as if the transition had
1000 already begun, without any transition delay, at the moment which would
1001 cause the new transition to finish in TE from the moment of interruption. In other
1002 words, the new transition will execute as if it started T-TE in the past.
1003 </li>
1004 <li>
1005 Use a timing function that is the portion of the curve traversed up
1006 to the moment of interruption, followed in the opposite direction (towards
1007 the starting point). This will make the transition appear as if it
1008 is playing backwards.
1009 </li>
1010 <li>
1011 Ignore any transition delay.
1012 </li>
1013 </ol>
1015 <p>
1016 For example, suppose there is a transition with a duration of two
1017 seconds. If this transition is interrupted after 0.5 seconds and the
1018 property value assigned to the original value, then the new transition
1019 effect will be the reverse of the original, as if it had begun
1020 1.5 seconds in the past.
1021 </p>
1023 <p>
1024 Note that by using the defined from and to states for the reversing
1025 transition, it is also possible that it may reverse again, if
1026 interrupted; for example, if the transition reversing to state A was
1027 again interrupted by a property change to state B.
1028 </p>
1030 <p class="issue">Issue:
1031 This introduces the concept of reversing a timing function,
1032 which the spec has otherwise resisted doing, and also introduces
1033 a discontinuity between transitions that have
1034 almost completed (which get automatically reversed and thus have
1035 their timing function reversed) and transitions that have fully
1036 completed (where the reversal doesn't lead to the timing
1037 function being reversed). An alternative proposal that avoids
1038 this is to follow the normal timing function algorithm, except
1039 multiply the duration (and also shorten any negative delay) by
1040 the (output) value of the transition timing function of the
1041 incomplete transition at the time it was interrupted, and, to
1042 account for multiple reverses in sequence, to divide by the
1043 shortening applied to the transition being interrupted. For
1044 more details see this thread:
1045 <a href="http://lists.w3.org/Archives/Public/www-style/2009Nov/thread.html#msg302">November 2009 part</a>,
1046 <a href="http://lists.w3.org/Archives/Public/www-style/2009Dec/thread.html#msg319">December 2009 part</a>,
1047 <a href="http://lists.w3.org/Archives/Public/www-style/2010Jan/thread.html#msg136">January 2010 part</a>.
1048 </p>
1050 <h2 id="transition-events"><a id="transition-events-">
1051 Transition Events
1052 </a></h2>
1053 <p>
1054 The completion of a CSS Transition generates a corresponding <a href="http://www.w3.org/TR/DOM-Level-2-Events/events.html">DOM Event</a>.
1055 An event is fired for each property that undergoes a transition.
1056 This allows a content developer to perform actions that synchronize
1057 with the completion of a transition.
1058 </p>
1059 <p>
1060 Each event provides the name of the property the transition is
1061 associated with as well as the duration of the transition.
1062 </p>
1063 <dl>
1064 <dt>
1065 <b>Interface <dfn id="Events-TransitionEvent">TransitionEvent</dfn></b>
1066 </dt>
1067 <dd>
1068 <p>
1069 The <code>TransitionEvent</code> interface provides specific contextual information associated with transitions.
1070 </p>
1071 <dl>
1072 <dt>
1073 <b>IDL Definition</b>
1074 </dt>
1075 <dd>
1076 <div class='idl-code'>
1077 <pre>
1078 <span id="TransitionEvent">[Constructor(DOMString <var title="">type</var>, optional <i>TransitionEventInit</i> <var title="">transitionEventInitDict</var>)]
1079 interface TransitionEvent</span> : Event {
1080 readonly attribute DOMString <a href="#Events-TransitionEvent-propertyName">propertyName</a>;
1081 readonly attribute float <a href="#Events-TransitionEvent-elapsedTime">elapsedTime</a>;
1082 readonly attribute DOMString <a href="#Events-TransitionEvent-pseudoElement">pseudoElement</a>;
1083 };
1085 dictionary <dfn id="TransitionEventInit">TransitionEventInit</dfn> : <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#eventinit">EventInit</a> {
1086 DOMString <a href="#Events-TransitionEvent-propertyName">propertyName</a>;
1087 float <a href="#Events-TransitionEvent-elapsedTime">elapsedTime</a>;
1088 DOMString <a href="#Events-TransitionEvent-pseudoElement">pseudoElement</a>;
1089 }
1090 </pre>
1091 </div>
1092 </dd>
1093 <dt>
1094 <b>Attributes</b>
1095 </dt>
1096 <dd>
1097 <dl>
1098 <dt>
1099 <code class='attribute-name'><dfn title="TransitionEvent::propertyName" id="Events-TransitionEvent-propertyName">propertyName</dfn></code> of type <code>DOMString</code>, readonly
1100 </dt>
1101 <dd>
1102 The name of the CSS property associated with the transition.
1103 When an event is created the attribute
1104 must be initialized to the empty string.
1105 </dd>
1106 </dl>
1107 <dl>
1108 <dt>
1109 <code class='attribute-name'><dfn title="TransitionEvent::elapsedTime" id="Events-TransitionEvent-elapsedTime">elapsedTime</dfn></code> of type <code>float</code>, readonly
1110 </dt>
1111 <dd>
1112 The amount of time the transition has been running, in seconds, when this event fired. Note that this value is not affected by the value of <code class="property">transition-delay</code>.
1113 When an event is created the attribute
1114 must be initialized to zero.
1115 </dd>
1116 </dl>
1117 <dl>
1118 <dt>
1119 <code class='attribute-name'><dfn title="TransitionEvent::pseudoElement" id="Events-TransitionEvent-pseudoElement">pseudoElement</dfn></code> of type <code>DOMString</code>, readonly
1120 </dt>
1121 <dd>
1122 The name (beginning with two colons) of the CSS
1123 pseudo-element on which the transition occured (in
1124 which case the target of the event is that
1125 pseudo-element's corresponding element), or the empty
1126 string if the transition occurred on an element (which
1127 means the target of the event is that element).
1128 When an event is created the attribute
1129 must be initialized to the empty string.
1130 </dd>
1131 </dl>
1132 </dd>
1133 </dl>
1134 <p>
1135 <code id="TransitionEvent-constructor">TransitionEvent(type, transitionEventInitDict)</code>
1136 is an <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#constructing-events">event constructor</a>.
1137 </p>
1138 </dd>
1139 </dl>
1140 <p>
1141 There is one type of transition event available.
1142 </p>
1143 <dl>
1144 <dt>
1145 <b><dfn>transitionend</dfn></b>
1146 </dt>
1147 <dd>
1148 The <code>transitionend</code> event occurs at the completion of the transition. In the
1149 case where a transition is removed before completion, such as if the
1150 transition-property is removed, then the event will not fire.
1151 <ul>
1152 <li>Bubbles: Yes
1153 </li>
1154 <li>Cancelable: Yes
1155 </li>
1156 <li>Context Info: propertyName, elapsedTime, pseudoElement
1157 </li>
1158 </ul>
1159 </dd>
1160 </dl>
1162 <h2 id="animatable-types"><a id="animation-of-property-types-">
1163 Animation of property types
1164 </a></h2>
1166 <p>
1167 When interpolating between two values,
1168 <i>V</i><sub>start</sub> and <i>V</i><sub>end</sub>,
1169 interpolation is done using the output <i>p</i> of the timing function,
1170 which gives the portion of the value space
1171 that the interpolation has crossed.
1172 Thus the result of the interpolation is
1173 <i>V</i><sub>res</sub> =
1174 (1 - <i>p</i>) ⋅ <i>V</i><sub>start</sub> +
1175 <i>p</i> ⋅ <i>V</i><sub>end</sub>.
1176 </p>
1178 <p>
1179 However, if this value (<i>V</i><sub>res</sub>)
1180 is outside the allowed range of values for the property,
1181 then it is clamped to that range.
1182 This can occur if <i>p</i> is outside of the range 0 to 1,
1183 which can occur if a timing function is specified
1184 with a <i>y1</i> or <i>y2</i> that is outside the range 0 to 1.
1185 </p>
1187 <p>
1188 The following describes how each property type undergoes transition or
1189 animation.
1190 </p>
1192 <ul>
1193 <li id="animtype-color">
1194 <strong>color</strong>: interpolated via red, green, blue and alpha
1195 components (treating each as a number, see below).
1196 The interpolation is done between premultiplied colors
1197 (that is, colors for which the red, green, and blue components
1198 specified have been multiplied by the alpha).
1199 </li>
1200 <li id="animtype-length">
1201 <strong>length</strong>: interpolated as real numbers.
1202 </li>
1203 <li id="animtype-percentage">
1204 <strong>percentage</strong>: interpolated as real numbers.
1205 </li>
1206 <li id="animtype-lpcalc">
1207 <strong>length, percentage, or calc</strong>: when both values
1208 are lengths, interpolated as lengths; when both values are
1209 percentages, interpolated as percentages; otherwise, both
1210 values are converted into a ''calc()'' function that is the
1211 sum of a length and a percentage (each possibly zero), and
1212 these ''calc()'' functions have each half interpolated as real
1213 numbers.
1214 </li>
1215 <li id="animtype-integer">
1216 <strong>integer</strong>: interpolated via discrete steps (whole
1217 numbers). The interpolation happens in real number space and is
1218 converted to an integer by rounding to the nearest integer, with
1219 values halfway between a pair of integers rounded towards
1220 positive infinity.
1221 </li>
1222 <li id="animtype-font-weight">
1223 <strong>font weight</strong>: interpolated via discrete steps
1224 (multiples of 100). The interpolation happens in real number
1225 space and is converted to an integer by rounding to the
1226 nearest multiple of 100, with values halfway between multiples
1227 of 100 rounded towards positive infinity.
1228 </li>
1229 <li id="animtype-number">
1230 <strong>number</strong>: interpolated as real (floating point)
1231 numbers.
1232 </li>
1233 <li id="animtype-rect">
1234 <strong>rectangle</strong>: interpolated via the x, y,
1235 width and height components (treating each as a number).
1236 </li>
1237 <li id="animtype-visibility">
1238 <strong>visibility</strong>: if one of the values is
1239 ''visible'', interpolated as a discrete step where values of the
1240 timing function between 0 and 1 map to ''visible'' and other
1241 values of the timing function (which occur only at the
1242 start/end of the transition or as a result of ''cubic-bezier()''
1243 functions with Y values outside of [0, 1]) map to the closer
1244 endpoint; if neither value is ''visible'' then not interpolable.
1245 </li>
1246 <li id="animtype-shadow-list">
1247 <strong>shadow list</strong>: Each shadow in the list is
1248 interpolated via the
1249 color (as <a href="#animtype-color">color</a>) component,
1250 and x, y, blur, and (when appropriate) spread
1251 (as <a href="#animtype-length">length</a>) components.
1252 For each shadow, if one input shadow is ''inset'' and the other
1253 is not, then the result for that shadow matches the inputs;
1254 otherwise the entire list is not interpolable.
1255 If the lists of shadows have different lengths,
1256 then the shorter list is padded at the end
1257 with shadows whose color is ''transparent'',
1258 all lengths are ''0'',
1259 and whose ''inset'' (or not) matches the longer list.
1260 </li>
1261 <li id="animtype-gradient">
1262 <strong>gradient</strong>: interpolated via the
1263 positions and colors of each stop. They must have the same type
1264 (radial or linear) and same number of stops in order to be animated.
1265 <span class="note">Note: [[CSS3-IMAGES]] may extend this
1266 definition.</span>
1267 </li>
1268 <li id="animtype-paintserver">
1269 <strong>paint server</strong> (SVG): interpolation is only supported
1270 between: gradient to gradient and color to color. They then
1271 work as above.
1272 </li>
1273 <li id="animtype-simple-list">
1274 <strong>simple list</strong> of other types:
1275 If the lists have the same number of items,
1276 and each pair of values can be interpolated,
1277 each item in the list is interpolated using
1278 the rules given for those types.
1279 Otherwise the values are not interpolable.
1280 </li>
1281 <li id="animtype-repeatable-list">
1282 <strong>repeatable list</strong> of other types:
1283 The result list has a length that is the least common multiple
1284 of the lengths of the input lists.
1285 Each item in the result is the interpolation of the value
1286 from each input list repeated to the length of the result list.
1287 If a pair of values cannot be interpolated, then the lists
1288 are not interpolable.
1289 <span class="note">
1290 The repeatable list concept ensures that a list that is
1291 conceptually repeated to a certain length (as
1292 'background-origin' is repeated to the length of the
1293 'background-image' list) or repeated infinitely will
1294 smoothly transition between any values, and so that the
1295 computed value will properly represent the result (and
1296 potentially be inherited correctly).
1297 </span>
1298 </li>
1299 </ul>
1301 <p>Future specifications may define additional types that can
1302 be animated.</p>
1304 <p>See the definition of 'transition-property' for how animation
1305 of shorthand properties and the ''all'' value is applied to any
1306 properties (in the shorthand) that can be animated.</p>
1308 <h2 id="animatable-properties"><a id="animatable-properties-">
1309 Animatable properties
1310 </a></h2>
1312 <!--
1313 As resolved in
1314 http://lists.w3.org/Archives/Public/www-style/2011Sep/0497.html
1315 -->
1317 <p>The definition of each CSS property defines
1318 when the values of that property can be interpolated
1319 by referring to the definitions of property types
1320 in the <a href="#animatable-types">previous section</a>.
1321 Values are animatable when
1322 both the from and the to values of the property have the type described.
1323 (When a composite type such as "length, percentage, or calc" is listed,
1324 this means that both values must fit into that composite type.)
1325 When multiple types are listed in the form "either A or B",
1326 both values must be of the same type to be interpolable.</p>
1328 <p>For properties that exist at the time this specification was
1329 developed, this specification defines whether and how they are
1330 animated. However, future CSS specifications may define
1331 additional properties, additional values for existing properties,
1332 or additional animation behavior of existing values. In order to
1333 describe new animation behaviors and to have the definition of
1334 animation behavior in a more appropriate location, future CSS
1335 specifications should include an "Animatable:" line in the summary
1336 of the property's definition (in addition to the other lines
1337 described in [[CSS21]], <a
1338 href="http://www.w3.org/TR/CSS21/about.html#property-defs">section
1339 1.4.2</a>). This line should say "no" to indicate that a property
1340 cannot be animated or should reference an animation behavior
1341 (which may be one of the behaviors in the <a
1342 href="#animation-of-property-types-">Animation of property
1343 types</a> section above, or may be a new behavior) to define how
1344 the property animates. Such definitions override those given in
1345 this specification.</p>
1347 <h3 id="animatable-css"><a id="properties-from-css-">
1348 Properties from CSS
1349 </a></h3>
1351 <p>
1352 The following definitions define the animation behavior for
1353 properties in CSS Level 2 Revision 1 ([[CSS21]]) and in Level 3 of
1354 the CSS Color Module ([[CSS3COLOR]]).
1355 </p>
1357 <table class="animatable-properties">
1358 <tr>
1359 <th>Property Name</th>
1360 <th>Type</th>
1361 </tr>
1362 <tr>
1363 <td>background-color</td><td>as <a href="#animtype-color">color</a></tr>
1364 <tr>
1365 <td>background-position</td><td>as <a href="#animtype-repeatable-list">repeatable list</a> of <a href="#animtype-simple-list">simple list</a> of <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1366 </tr>
1367 <tr>
1368 <td>border-bottom-color</td><td>as <a href="#animtype-color">color</a></td>
1369 </tr>
1370 <tr>
1371 <td>border-bottom-width</td><td>as <a href="#animtype-length">length</a></td>
1372 </tr>
1373 <tr>
1374 <td>border-left-color</td><td>as <a href="#animtype-color">color</a></td>
1375 </tr>
1376 <tr>
1377 <td>border-left-width</td><td>as <a href="#animtype-length">length</a></td>
1378 </tr>
1379 <tr>
1380 <td>border-right-color</td><td>as <a href="#animtype-color">color</a></td>
1381 </tr>
1382 <tr>
1383 <td>border-right-width</td><td>as <a href="#animtype-length">length</a></td>
1384 </tr>
1385 <tr>
1386 <td>border-spacing</td><td>as <a href="#animtype-simple-list">simple list</a> of <a href="#animtype-length">length</a></td>
1387 </tr>
1388 <tr>
1389 <td>border-top-color</td><td>as <a href="#animtype-color">color</a></td>
1390 </tr>
1391 <tr>
1392 <td>border-top-width</td><td>as <a href="#animtype-length">length</a></td>
1393 </tr>
1394 <tr>
1395 <td>bottom</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1396 </tr>
1397 <tr>
1398 <td>clip</td><td>as <a href="#animtype-rect">rectangle</a></td>
1399 </tr>
1400 <tr>
1401 <td>color</td><td>as <a href="#animtype-color">color</a></td>
1402 </tr>
1403 <tr>
1404 <td>font-size</td><td>as <a href="#animtype-length">length</a></td>
1405 </tr>
1406 <tr>
1407 <td>font-weight</td><td>as <a href="#animtype-font-weight">font weight</a></td>
1408 </tr>
1409 <tr>
1410 <td>height</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1411 </tr>
1412 <tr>
1413 <td>left</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1414 </tr>
1415 <tr>
1416 <td>letter-spacing</td><td>as <a href="#animtype-length">length</a></td>
1417 </tr>
1418 <tr>
1419 <td>line-height</td><td>as either <a href="#animtype-number">number</a> or <a href="#animtype-length">length</a></td>
1420 </tr>
1421 <tr>
1422 <td>margin-bottom</td><td>as <a href="#animtype-length">length</a></td>
1423 </tr>
1424 <tr>
1425 <td>margin-left</td><td>as <a href="#animtype-length">length</a></td>
1426 </tr>
1427 <tr>
1428 <td>margin-right</td><td>as <a href="#animtype-length">length</a></td>
1429 </tr>
1430 <tr>
1431 <td>margin-top</td><td>as <a href="#animtype-length">length</a></td>
1432 </tr>
1433 <tr>
1434 <td>max-height</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1435 </tr>
1436 <tr>
1437 <td>max-width</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1438 </tr>
1439 <tr>
1440 <td>min-height</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1441 </tr>
1442 <tr>
1443 <td>min-width</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1444 </tr>
1445 <tr>
1446 <td>opacity</td><td>as <a href="#animtype-number">number</a></td>
1447 </tr>
1448 <tr>
1449 <td>outline-color</td><td>as <a href="#animtype-color">color</a></td>
1450 </tr>
1451 <tr>
1452 <td>outline-width</td><td>as <a href="#animtype-length">length</a></td>
1453 </tr>
1454 <tr>
1455 <td>padding-bottom</td><td>as <a href="#animtype-length">length</a></td>
1456 </tr>
1457 <tr>
1458 <td>padding-left</td><td>as <a href="#animtype-length">length</a></td>
1459 </tr>
1460 <tr>
1461 <td>padding-right</td><td>as <a href="#animtype-length">length</a></td>
1462 </tr>
1463 <tr>
1464 <td>padding-top</td><td>as <a href="#animtype-length">length</a></td>
1465 </tr>
1466 <tr>
1467 <td>right</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1468 </tr>
1469 <tr>
1470 <td>text-indent</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1471 </tr>
1472 <tr>
1473 <td>text-shadow</td><td>as <a href="#animtype-shadow-list">shadow list</a></td>
1474 </tr>
1475 <tr>
1476 <td>top</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1477 </tr>
1478 <tr>
1479 <td>vertical-align</td><td>as <a href="#animtype-length">length</a></td>
1480 </tr>
1481 <tr>
1482 <td>visibility</td><td>as <a href="#animtype-visibility">visibility</a></td>
1483 </tr>
1484 <tr>
1485 <td>width</td><td>as <a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1486 </tr>
1487 <tr>
1488 <td>word-spacing</td><td>as <a href="#animtype-length">length</a></td>
1489 </tr>
1490 <tr>
1491 <td>z-index</td><td>as <a href="#animtype-integer">integer</a></td>
1492 </tr>
1493 </table>
1495 <h3 id="animatable-svg"><a id="properties-from-svg-">
1496 Properties from SVG
1497 </a></h3>
1499 <p>
1500 All properties defined as animatable in the SVG specification, provided
1501 they are one of the property types listed above.
1502 </p>
1504 <!-- <table>
1505 <tr>
1506 <th>Property Name</th><th>Type</th>
1507 </tr>
1508 <tr>
1509 <td>stop-color</td><td>as <a href="#animtype-color">color</a></td>
1510 </tr>
1511 <tr>
1512 <td>stop-opacity</td><td>as <a href="#animtype-number">number</a></td>
1513 </tr>
1514 <tr>
1515 <td>fill</td><td>as <a href="#animtype-paintserver">paint server</a></td>
1516 </tr>
1517 <tr>
1518 <td>fill-opacity</td><td>as <a href="#animtype-number">number</a></td>
1519 </tr>
1520 <tr>
1521 <td>stroke</td><td>as <a href="#animtype-paintserver">paint server</a></td>
1522 </tr>
1523 <tr>
1524 <td>stroke-dasharray</td><td>as <a href="#animtype-repeatable-list">repeatable list</a> of <a href="#animtype-number">number</a></td>
1525 </tr>
1526 <tr>
1527 <td>stroke-dashoffset</td><td>as <a href="#animtype-number">number</a></td>
1528 </tr>
1529 <tr>
1530 <td>stroke-miterlimit</td><td>as <a href="#animtype-number">number</a></td>
1531 </tr>
1532 <tr>
1533 <td>stroke-opacity</td><td>as <a href="#animtype-number">number</a></td>
1534 </tr>
1535 <tr>
1536 <td>stroke-width</td><td>as <a href="#animtype-number">number</a></td>
1537 </tr>
1538 <tr>
1539 <td>viewport-fill</td><td>as <a href="#animtype-color">color</a></td>
1540 </tr>
1541 <tr>
1542 <td>viewport-fill-opacity</td><td>as <a href="#animtype-color">color</a></td>
1543 </tr>
1544 </table> -->
1546 <h2 id="acknowledgments">Acknowledgments</h2>
1548 <p>Thanks especially to the feedback from
1549 Tab Atkins,
1550 Carine Bournez,
1551 Aryeh Gregor,
1552 Vincent Hardy,
1553 Cameron McCormack,
1554 Alex Mogilevsky,
1555 and all the rest of the
1556 <a href="http://lists.w3.org/Archives/Public/www-style/">www-style</a> community.</p>
1558 <h2 id="references">References</h2>
1560 <h3 class="no-num" id="normative-references">Normative references</h3>
1561 <!--normative-->
1563 <h3 class="no-num" id="other-references">Other references</h3>
1564 <!--informative-->
1568 <h2 class="no-num" id="property-index">Property index</h2>
1569 <!-- properties -->
1573 <h2 class="no-num" id="index">Index</h2>
1574 <!--index-->
1576 </body>
1577 </html>
1578 <!-- Keep this comment at the end of the file
1579 Local variables:
1580 mode: sgml
1581 sgml-default-doctype-name:"html"
1582 sgml-minimize-attributes:t
1583 End:
1584 -->