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