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