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