Mon, 04 Feb 2013 22:54:31 -0700
[css3-transitions] Add an id for animtype-list as well.
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/2012/WD-css3-transitions-20120403/">
43 http://www.w3.org/TR/2012/WD-css3-transitions-20120403/</a>
44 <dt id="editors-list">Editors:
45 <dd><a href="mailto:dino@apple.com">Dean Jackson</a> (<a
46 href="http://www.apple.com/">Apple Inc</a>)
47 <dd><a href="mailto:hyatt@apple.com">David Hyatt</a> (<a
48 href="http://www.apple.com/">Apple Inc</a>)
49 <dd><a href="mailto:cmarrin@apple.com">Chris Marrin</a> (<a
50 href="http://www.apple.com/">Apple Inc</a>)
51 <dd class=vcard><a class=fn href="http://dbaron.org/">L. David Baron</a> (<a
52 class=org href="http://www.mozilla.org/">Mozilla</a>)
54 <dt>Issues list:
55 <dd><a href="https://www.w3.org/Bugs/Public/buglist.cgi?query_format=advanced&product=CSS&component=Transitions&resolution=---&cmdtype=doit">in Bugzilla</a>
57 <dt>Discussion:</dt>
58 <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>”
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 Same as specified value.
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 </p>
876 <div class="example" id="manual-reversing-example">
877 <p style="display:none">
878 Example(s):
879 </p>
880 <p>This provides a way for authors to specify different values
881 of the 'transition-*' properties for the “forward”
882 and “reverse” transitions (but see <a
883 href="#reversing">below</a> for special reversing behavior when
884 an <em>incomplete</em> transition is interrupted). Authors can
885 specify the value of 'transition-duration',
886 'transition-timing-function', or 'transition-delay' in the same
887 rule where they specify the value that triggers the transition,
888 or can change these properties at the same time as they change
889 the property that triggers the transition. Since it's the new
890 values of these 'transition-*' properties that affect the
891 transition, these values will be used for the transitions
892 <em>to</em> the associated transitioning values. For example:
893 </p>
894 <pre>li {
895 transition: background-color linear 1s;
896 background: blue;
897 }
898 li:hover {
899 background-color: green;
900 transition-duration: 2s; /* applies to the transition *to* the :hover state */
901 }</pre>
902 <p>
903 When a list item with these style rules enters the :hover
904 state, the computed 'transition-duration' at the time that
905 'background-color' would have its new value (''green'') is ''2s'',
906 so the transition from 'blue' to 'green' takes 2 seconds.
907 However, when the list item leaves the :hover state, the
908 transition from ''green'' to ''blue'' takes 1 second.
909 </p>
910 </div>
912 <p>
913 When the computed value of a property changes, implementations
914 must start transitions based on the relevant item (see <a
915 href="#transition-property">the definition of
916 'transition-property'</a>) in the computed value of
917 'transition-property'.
918 Corresponding to this item there are
919 computed values of 'transition-duration' and 'transition-delay'
920 (see <a href="#list-matching">the rules on matching lists</a>).
921 Define the <dfn>combined duration</dfn> of the transition
922 as the sum of max('transition-duration', ''0s'') and 'transition-delay'.
923 When the combined duration is greater than ''0s'',
924 then a transition starts based on the values of
925 'transition-duration', 'transition-delay',
926 and 'transition-timing-function';
927 in other cases transitions do not occur.
928 </p>
930 <p>
931 Since this specification does not define
932 when computed values change, and thus what changes to
933 computed values are considered simultaneous,
934 authors should be aware that changing any of the transition
935 properties a small amount of time after making a change that
936 might transition can result in behavior that varies between
937 implementations, since the changes might be considered
938 simultaneous in some implementations but not others.
939 </p>
941 <p>
942 Once the transition of a property has started, it must continue
943 running based on the original timing function, duration, and
944 delay, even if the 'transition-timing-function',
945 'transition-duration', or 'transition-delay' property changes
946 before the transition is complete. However, if the
947 'transition-property' property changes such that the transition
948 would not have started, the transition must stop (and the
949 property must immediately change to its final value).
950 </p>
952 <p>
953 Implementations must not start a transition when the computed
954 value of a property changes as a result of declarative animation
955 (as opposed to scripted animation).
956 </p>
958 <p>
959 Implementations also must not start a transition when the
960 computed value changes because it is inherited (directly or
961 indirectly) from another element that is transitioning the same
962 property.
963 </p>
965 <h2 id="reversing">
966 Automatically reversing interrupted transitions
967 </h2>
968 <p>
969 A common type of transition effect is when a running transition is
970 interrupted and the property is reset to its original value. An
971 example is a hover effect on an element, where the pointer enters and
972 exits the element before the effect has completed. If the outgoing and
973 incoming transitions are executed using their specified durations and
974 timing functions, the resulting effect can be distractingly
975 asymmetric. Instead, the expected behavior is that the new transition
976 should be the reverse of what has already executed.
977 </p>
979 <p>
980 If a running transition with duration T, executing so far for duration TE,
981 from state A, to state B, is interrupted by
982 a property change that would start a new transition back to state A, and
983 all the transition attributes are the same (duration, delay and timing function),
984 then the new transition must reverse the effect. The new transition must:
985 </p>
987 <ol>
988 <li>
989 Use the B and A states as its "from" and "to" states respectively. It
990 does not use the current value as its from state, due to the rules below.
991 </li>
992 <li>
993 Execute with the same duration T, but starting as if the transition had
994 already begun, without any transition delay, at the moment which would
995 cause the new transition to finish in TE from the moment of interruption. In other
996 words, the new transition will execute as if it started T-TE in the past.
997 </li>
998 <li>
999 Use a timing function that is the portion of the curve traversed up
1000 to the moment of interruption, followed in the opposite direction (towards
1001 the starting point). This will make the transition appear as if it
1002 is playing backwards.
1003 </li>
1004 <li>
1005 Ignore any transition delay.
1006 </li>
1007 </ol>
1009 <p>
1010 For example, suppose there is a transition with a duration of two
1011 seconds. If this transition is interrupted after 0.5 seconds and the
1012 property value assigned to the original value, then the new transition
1013 effect will be the reverse of the original, as if it had begun
1014 1.5 seconds in the past.
1015 </p>
1017 <p>
1018 Note that by using the defined from and to states for the reversing
1019 transition, it is also possible that it may reverse again, if
1020 interrupted; for example, if the transition reversing to state A was
1021 again interrupted by a property change to state B.
1022 </p>
1024 <p class="issue">Issue:
1025 This introduces the concept of reversing a timing function,
1026 which the spec has otherwise resisted doing, and also introduces
1027 a discontinuity between transitions that have
1028 almost completed (which get automatically reversed and thus have
1029 their timing function reversed) and transitions that have fully
1030 completed (where the reversal doesn't lead to the timing
1031 function being reversed). An alternative proposal that avoids
1032 this is to follow the normal timing function algorithm, except
1033 multiply the duration (and also shorten any negative delay) by
1034 the (output) value of the transition timing function of the
1035 incomplete transition at the time it was interrupted, and, to
1036 account for multiple reverses in sequence, to divide by the
1037 shortening applied to the transition being interrupted. For
1038 more details see this thread:
1039 <a href="http://lists.w3.org/Archives/Public/www-style/2009Nov/thread.html#msg302">November 2009 part</a>,
1040 <a href="http://lists.w3.org/Archives/Public/www-style/2009Dec/thread.html#msg319">December 2009 part</a>,
1041 <a href="http://lists.w3.org/Archives/Public/www-style/2010Jan/thread.html#msg136">January 2010 part</a>.
1042 </p>
1044 <h2 id="transition-events"><a id="transition-events-">
1045 Transition Events
1046 </a></h2>
1047 <p>
1048 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>.
1049 An event is fired for each property that undergoes a transition.
1050 This allows a content developer to perform actions that synchronize
1051 with the completion of a transition.
1052 </p>
1053 <p>
1054 Each event provides the name of the property the transition is
1055 associated with as well as the duration of the transition.
1056 </p>
1057 <dl>
1058 <dt>
1059 <b>Interface <i><a id="Events-TransitionEvent" name='Events-TransitionEvent'>TransitionEvent</a></i></b>
1060 </dt>
1061 <dd>
1062 <p>
1063 The <code>TransitionEvent</code> interface provides specific contextual information associated with transitions.
1064 </p>
1065 <dl>
1066 <dt>
1067 <b>IDL Definition</b>
1068 </dt>
1069 <dd>
1070 <div class='idl-code'>
1071 <pre>
1072 <span id="TransitionEvent">[Constructor(DOMString <var title="">type</var>, optional <a href="#TransitionEventInit">TransitionEventInit</a> <var title="">eventInitDict</var>)]
1073 interface TransitionEvent</span> : Event {
1074 readonly attribute DOMString <a href="#Events-TransitionEvent-propertyName">propertyName</a>;
1075 readonly attribute float <a href="#Events-TransitionEvent-elapsedTime">elapsedTime</a>;
1076 readonly attribute DOMString <a href="#Events-TransitionEvent-pseudoElement">pseudoElement</a>;
1077 };
1079 <span id="TransitionEventInit">dictionary AnimationEventInit</span> : <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#eventinit">EventInit</a> {
1080 DOMString <a href="#Events-TransitionEvent-propertyName">propertyName</a>;
1081 float <a href="#Events-TransitionEvent-elapsedTime">elapsedTime</a>;
1082 DOMString <a href="#Events-TransitionEvent-pseudoElement">pseudoElement</a>;
1083 }
1084 </pre>
1085 </div>
1086 </dd>
1087 <dt>
1088 <b>Attributes</b>
1089 </dt>
1090 <dd>
1091 <dl>
1092 <dt>
1093 <code class='attribute-name'><a id="Events-TransitionEvent-propertyName" name='Events-TransitionEvent-propertyName'>propertyName</a></code> of type <code>DOMString</code>, readonly
1094 </dt>
1095 <dd>
1096 The name of the CSS property associated with the transition.
1097 </dd>
1098 </dl>
1099 <dl>
1100 <dt>
1101 <code class='attribute-name'><a id="Events-TransitionEvent-elapsedTime" name='Events-TransitionEvent-elapsedTime'>elapsedTime</a></code> of type <code>float</code>, readonly
1102 </dt>
1103 <dd>
1104 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>.
1105 </dd>
1106 </dl>
1107 <dl>
1108 <dt>
1109 <code class='attribute-name'><a id="Events-TransitionEvent-pseudoElement" name='Events-TransitionEvent-pseudoElement'>pseudoElement</a></code> of type <code>DOMString</code>, readonly
1110 </dt>
1111 <dd>
1112 The name (beginning with two colons) of the CSS
1113 pseudo-element on which the transition occured (in
1114 which case the target of the event is that
1115 pseudo-element's corresponding element), or the empty
1116 string if the transition occurred on an element (which
1117 means the target of the event is that element).
1118 </dd>
1119 </dl>
1120 </dd>
1121 </dl>
1122 <p>
1123 <code id="TransitionEvent-constructor">TransitionEvent(type, animEventDict)</code>
1124 is an <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-event-constructor">event constructor</a>.
1125 </p>
1126 </dd>
1127 </dl>
1128 <p>
1129 There is one type of transition event available.
1130 </p>
1131 <dl>
1132 <dt>
1133 <b>transitionend</b>
1134 </dt>
1135 <dd>
1136 The <code>transitionend</code> event occurs at the completion of the transition. In the
1137 case where a transition is removed before completion, such as if the
1138 transition-property is removed, then the event will not fire.
1139 <ul>
1140 <li>Bubbles: Yes
1141 </li>
1142 <li>Cancelable: Yes
1143 </li>
1144 <li>Context Info: propertyName, elapsedTime
1145 </li>
1146 </ul>
1147 </dd>
1148 </dl>
1150 <h2 id="animatable-types"><a id="animation-of-property-types-">
1151 Animation of property types
1152 </a></h2>
1154 <p>
1155 When interpolating between two values,
1156 <i>V</i><sub>start</sub> and <i>V</i><sub>end</sub>,
1157 interpolation is done using the output <i>p</i> of the timing function,
1158 which gives the portion of the value space
1159 that the interpolation has crossed.
1160 Thus the result of the interpolation is
1161 <i>V</i><sub>res</sub> =
1162 (1 - <i>p</i>) ⋅ <i>V</i><sub>start</sub> +
1163 <i>p</i> ⋅ <i>V</i><sub>end</sub>.
1164 </p>
1166 <p>
1167 However, if this value (<i>V</i><sub>res</sub>)
1168 is outside the allowed range of values for the property,
1169 then it is clamped to that range.
1170 This can occur if <i>p</i> is outside of the range 0 to 1,
1171 which can occur if a timing function is specified
1172 with a <i>y1</i> or <i>y2</i> that is outside the range 0 to 1.
1173 </p>
1175 <p>
1176 The following describes how each property type undergoes transition or
1177 animation.
1178 </p>
1180 <ul>
1181 <li id="animtype-color">
1182 <strong>color</strong>: interpolated via red, green, blue and alpha
1183 components (treating each as a number, see below).
1184 The interpolation is done between premultiplied colors
1185 (that is, colors for which the red, green, and blue components
1186 specified have been multiplied by the alpha).
1187 </li>
1188 <li id="animtype-length">
1189 <strong>length</strong>: interpolated as real numbers.
1190 </li>
1191 <li id="animtype-percentage">
1192 <strong>percentage</strong>: interpolated as real numbers.
1193 </li>
1194 <li id="animtype-lpcalc">
1195 <strong>length, percentage, or calc</strong>: when both values
1196 are lengths, interpolated as lengths; when both values are
1197 percentages, interpolated as percentages; otherwise, both
1198 values are converted into a ''calc()'' function that is the
1199 sum of a length and a percentage (each possibly zero), and
1200 these ''calc()'' functions have each half interpolated as real
1201 numbers.
1202 </li>
1203 <li id="animtype-integer">
1204 <strong>integer</strong>: interpolated via discrete steps (whole
1205 numbers). The interpolation happens in real number space and is
1206 converted to an integer using <code>floor()</code>.
1207 <span class="issue">
1208 This floor behavior is inconsistent with SMIL Animation /
1209 SVG Animation.
1210 </span>
1211 </li>
1212 <li id="animtype-font-weight">
1213 <strong>font weight</strong>: interpolated via discrete steps
1214 (multiples of 100). The interpolation happens in real number
1215 space and is converted to an integer by rounding to the
1216 nearest multiple of 100.
1217 <span class="issue">
1218 This round-to-nearest behavior is inconsistent with the
1219 floor behavior used for integer types, but probably should
1220 be consistent (one way or the other).
1221 </span>
1222 </li>
1223 <li id="animtype-number">
1224 <strong>number</strong>: interpolated as real (floating point)
1225 numbers.
1226 </li>
1227 <li id="animtype-rect">
1228 <strong>rectangle</strong>: interpolated via the x, y,
1229 width and height components (treating each as a number).
1230 </li>
1231 <li id="animtype-visibility">
1232 <strong>visibility</strong>: if one of the values is
1233 ''visible'', interpolated as a discrete step where values of the
1234 timing function between 0 and 1 map to ''visible'' and other
1235 values of the timing function (which occur only at the
1236 start/end of the transition or as a result of ''cubic-bezier()''
1237 functions with Y values outside of [0, 1]) map to the closer
1238 endpoint; if neither value is ''visible'' then not interpolable.
1239 </li>
1240 <li id="animtype-shadow">
1241 <strong>shadow</strong>: interpolated via the color, x, y
1242 and blur components (treating them as color and numbers where
1243 appropriate). In the case where there are lists of shadows,
1244 the shorter list is padded at the end with shadows whose
1245 color is transparent and all lengths (x, y, blur) are 0.
1246 </li>
1247 <li id="animtype-gradient">
1248 <strong>gradient</strong>: interpolated via the
1249 positions and colors of each stop. They must have the same type
1250 (radial or linear) and same number of stops in order to be animated.
1251 <span class="note">Note: [[CSS3-IMAGES]] may extend this
1252 definition.</span>
1253 </li>
1254 <li id="animtype-paintserver">
1255 <strong>paint server</strong> (SVG): interpolation is only supported
1256 between: gradient to gradient and color to color. They then
1257 work as above.
1258 </li>
1259 <li id="animtype-list">
1260 <strong>list of above types</strong>: If the lists have the
1261 same number of items, each item in the list is interpolated using the
1262 rules above. Otherwise the interpolation is determined by the property
1263 rules. If the property extends its list by repeating values, then this
1264 repeated form will be used in the interpolation ('background-position'
1265 is an example of a property that would transition between lists of different lengths). If
1266 the property does not allow extending its list, then no interpolation
1267 will occur.
1268 </li>
1269 </ul>
1271 <p>Future specifications may define additional types that can
1272 be animated.</p>
1274 <p>See the definition of 'transition-property' for how animation
1275 of shorthand properties and the ''all'' value is applied to any
1276 properties (in the shorthand) that can be animated.</p>
1278 <h2 id="animatable-properties"><a id="animatable-properties-">
1279 Animatable properties
1280 </a></h2>
1282 <!--
1283 As resolved in
1284 http://lists.w3.org/Archives/Public/www-style/2011Sep/0497.html
1285 -->
1286 <p>For properties that exist at the time this specification was
1287 developed, this specification defines whether and how they are
1288 animated. However, future CSS specifications may define
1289 additional properties, additional values for existing properties,
1290 or additional animation behavior of existing values. In order to
1291 describe new animation behaviors and to have the definition of
1292 animation behavior in a more appropriate location, future CSS
1293 specifications should include an "Animatable:" line in the summary
1294 of the property's definition (in addition to the other lines
1295 described in [[CSS21]], <a
1296 href="http://www.w3.org/TR/CSS21/about.html#property-defs">section
1297 1.4.2</a>). This line should say "no" to indicate that a property
1298 cannot be animated or should reference an animation behavior
1299 (which may be one of the behaviors in the <a
1300 href="#animation-of-property-types-">Animation of property
1301 types</a> section above, or may be a new behavior) to define how
1302 the property animates. Such definitions override those given in
1303 this specification.</p>
1305 <h3 id="animatable-css"><a id="properties-from-css-">
1306 Properties from CSS
1307 </a></h3>
1309 <p>The following properties are animatable when both the from and
1310 the to values of the property have the type described.
1311 When multiple types are listed, both values must be of the same type.
1312 (When a composite type such as "length, percentage, or calc" is listed,
1313 this means that both values must fit into that composite
1314 type.)</p>
1316 <table class="animatable-properties">
1317 <tr>
1318 <th>Property Name</th>
1319 <th>Type</th>
1320 </tr>
1321 <tr>
1322 <td>background-color</td><td><a href="#animtype-color">color</a></tr>
1323 <tr>
1324 <td>background-position</td><td><a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1325 </tr>
1326 <tr>
1327 <td>border-bottom-color</td><td><a href="#animtype-color">color</a></td>
1328 </tr>
1329 <tr>
1330 <td>border-bottom-width</td><td><a href="#animtype-length">length</a></td>
1331 </tr>
1332 <tr>
1333 <td>border-left-color</td><td><a href="#animtype-color">color</a></td>
1334 </tr>
1335 <tr>
1336 <td>border-left-width</td><td><a href="#animtype-length">length</a></td>
1337 </tr>
1338 <tr>
1339 <td>border-right-color</td><td><a href="#animtype-color">color</a></td>
1340 </tr>
1341 <tr>
1342 <td>border-right-width</td><td><a href="#animtype-length">length</a></td>
1343 </tr>
1344 <tr>
1345 <td>border-spacing</td><td><a href="#animtype-length">length</a></td>
1346 </tr>
1347 <tr>
1348 <td>border-top-color</td><td><a href="#animtype-color">color</a></td>
1349 </tr>
1350 <tr>
1351 <td>border-top-width</td><td><a href="#animtype-length">length</a></td>
1352 </tr>
1353 <tr>
1354 <td>bottom</td><td><a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1355 </tr>
1356 <tr>
1357 <td>clip</td><td><a href="#animtype-rect">rectangle</a></td>
1358 </tr>
1359 <tr>
1360 <td>color</td><td><a href="#animtype-color">color</a></td>
1361 </tr>
1362 <tr>
1363 <td>crop <span class="issue">move to css3-content</span></td><td>rectangle</td>
1364 </tr>
1365 <tr>
1366 <td>font-size</td><td><a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1367 </tr>
1368 <tr>
1369 <td>font-weight</td><td><a href="#animtype-font-weight">font weight</a></td>
1370 </tr>
1371 <tr>
1372 <td>height</td><td><a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1373 </tr>
1374 <tr>
1375 <td>left</td><td><a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1376 </tr>
1377 <tr>
1378 <td>letter-spacing</td><td><a href="#animtype-length">length</a></td>
1379 </tr>
1380 <tr>
1381 <td>line-height</td><td><ul><li><a href="#animtype-number">number</a></li><li><a href="#animtype-lpcalc">length, percentage, or calc</a></li></ul></td>
1382 </tr>
1383 <tr>
1384 <td>margin-bottom</td><td><a href="#animtype-length">length</a></td>
1385 </tr>
1386 <tr>
1387 <td>margin-left</td><td><a href="#animtype-length">length</a></td>
1388 </tr>
1389 <tr>
1390 <td>margin-right</td><td><a href="#animtype-length">length</a></td>
1391 </tr>
1392 <tr>
1393 <td>margin-top</td><td><a href="#animtype-length">length</a></td>
1394 </tr>
1395 <tr>
1396 <td>max-height</td><td><a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1397 </tr>
1398 <tr>
1399 <td>max-width</td><td><a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1400 </tr>
1401 <tr>
1402 <td>min-height</td><td><a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1403 </tr>
1404 <tr>
1405 <td>min-width</td><td><a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1406 </tr>
1407 <tr>
1408 <td>opacity</td><td><a href="#animtype-number">number</a></td>
1409 </tr>
1410 <tr>
1411 <td>outline-color</td><td><a href="#animtype-color">color</a></td>
1412 </tr>
1413 <tr>
1414 <td>outline-offset <span class="issue">move to css3-ui</span></td><td><a href="#animtype-length">length</a></td>
1415 </tr>
1416 <tr>
1417 <td>outline-width</td><td><a href="#animtype-length">length</a></td>
1418 </tr>
1419 <tr>
1420 <td>padding-bottom</td><td><a href="#animtype-length">length</a></td>
1421 </tr>
1422 <tr>
1423 <td>padding-left</td><td><a href="#animtype-length">length</a></td>
1424 </tr>
1425 <tr>
1426 <td>padding-right</td><td><a href="#animtype-length">length</a></td>
1427 </tr>
1428 <tr>
1429 <td>padding-top</td><td><a href="#animtype-length">length</a></td>
1430 </tr>
1431 <tr>
1432 <td>right</td><td><a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1433 </tr>
1434 <tr>
1435 <td>text-indent</td><td><a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1436 </tr>
1437 <tr>
1438 <td>text-shadow</td><td><a href="#animtype-shadow">shadow</a></td>
1439 </tr>
1440 <tr>
1441 <td>top</td><td><a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1442 </tr>
1443 <tr>
1444 <td>vertical-align</td><td><a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1445 </tr>
1446 <tr>
1447 <td>visibility</td><td><a href="#animtype-visibility">visibility</a></td>
1448 </tr>
1449 <tr>
1450 <td>width</td><td><a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1451 </tr>
1452 <tr>
1453 <td>word-spacing</td><td><a href="#animtype-lpcalc">length, percentage, or calc</a></td>
1454 </tr>
1455 <tr>
1456 <td>z-index</td><td><a href="#animtype-integer">integer</a></td>
1457 </tr>
1458 </table>
1460 <p class="issue">
1461 This list omits the following properties that Gecko can animate, and
1462 which likely should be included:
1463 background-size,
1464 border-*-radius,
1465 box-shadow,
1466 column-count,
1467 column-gap,
1468 column-rule-color,
1469 column-rule-width,
1470 column-width,
1471 font-size-adjust,
1472 font-stretch,
1473 marker-offset,
1474 text-decoration-color,
1475 transform,
1476 transform-origin.
1477 </p>
1479 <h3 id="animatable-svg"><a id="properties-from-svg-">
1480 Properties from SVG
1481 </a></h3>
1483 <p>
1484 All properties defined as animatable in the SVG specification, provided
1485 they are one of the property types listed above.
1486 </p>
1488 <!-- <table>
1489 <tr>
1490 <th>Property Name</th><th>Type</th>
1491 </tr>
1492 <tr>
1493 <td>stop-color</td><td><a href="#animtype-color">color</a></td>
1494 </tr>
1495 <tr>
1496 <td>stop-opacity</td><td><a href="#animtype-number">number</a></td>
1497 </tr>
1498 <tr>
1499 <td>fill</td><td><a href="#animtype-paintserver">paint server</a></td>
1500 </tr>
1501 <tr>
1502 <td>fill-opacity</td><td><a href="#animtype-number">number</a></td>
1503 </tr>
1504 <tr>
1505 <td>stroke</td><td><a href="#animtype-paintserver">paint server</a></td>
1506 </tr>
1507 <tr>
1508 <td>stroke-dasharray</td><td><a href="#animtype-list">list</a> of <a href="#animtype-number">number</a></td>
1509 </tr>
1510 <tr>
1511 <td>stroke-dashoffset</td><td><a href="#animtype-number">number</a></td>
1512 </tr>
1513 <tr>
1514 <td>stroke-miterlimit</td><td><a href="#animtype-number">number</a></td>
1515 </tr>
1516 <tr>
1517 <td>stroke-opacity</td><td><a href="#animtype-number">number</a></td>
1518 </tr>
1519 <tr>
1520 <td>stroke-width</td><td><a href="#animtype-number">number</a></td>
1521 </tr>
1522 <tr>
1523 <td>viewport-fill</td><td><a href="#animtype-color">color</a></td>
1524 </tr>
1525 <tr>
1526 <td>viewport-fill-opacity</td><td><a href="#animtype-color">color</a></td>
1527 </tr>
1528 </table> -->
1530 <h2 id="acknowledgments">Acknowledgments</h2>
1532 <p>Thanks especially to the feedback from
1533 Tab Atkins,
1534 Carine Bournez,
1535 Aryeh Gregor,
1536 Vincent Hardy,
1537 Cameron McCormack,
1538 Alex Mogilevsky,
1539 and all the rest of the
1540 <a href="http://lists.w3.org/Archives/Public/www-style/">www-style</a> community.</p>
1542 <h2 id="references">References</h2>
1544 <h3 class="no-num" id="normative-references">Normative references</h3>
1545 <!--normative-->
1547 <h3 class="no-num" id="other-references">Other references</h3>
1548 <!--informative-->
1552 <h2 class="no-num" id="property-index">Property index</h2>
1553 <!-- properties -->
1557 <h2 class="no-num" id="index">Index</h2>
1558 <!--index-->
1560 </body>
1561 </html>
1562 <!-- Keep this comment at the end of the file
1563 Local variables:
1564 mode: sgml
1565 sgml-default-doctype-name:"html"
1566 sgml-minimize-attributes:t
1567 End:
1568 -->