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