Table of contents
- 1. Summary
- 2. Syntax
- 3. Examples
- 4. Specifications
- 5. Browser compatibility
- 6. See also
« CSS « CSS Reference
Summary
The transition-timing-function CSS property is used to describe how the intermediate values of the CSS properties being affected by a transition effect are calculated. This in essence lets you establish an acceleration curve, so that the speed of the transition can vary over its duration.
This acceleration curve is defined using one <timing-function>
for each property to be transitioned.
You may specify multiple timing functions; each one will be applied to the corresponding property as specified by the transition-property
property, which acts as a master list. If there are fewer functions specified than in the master list, missing values are set to the initial value (ease). If there are more timing functions, the list is simply truncated to the right size. In both case the CSS declaration stays valid.
- Initial value
:
ease - Applies to: all elements,
:beforeand:afterpseudo elements - Inherited : no
- Media:
interactive - Computed value : as specified
Syntax
transition-timing-function: <timing-function> [, <timing-function>]*
where:
- Each
<timing-function>represents the timing function to link to the corresponding property to transition, as defined intransition-property.
Examples
There are several examples of CSS transitions included in the main CSS transitions article.
Specifications
- CSS Transitions Module Level 3 (Working Draft)
Browser compatibility
| Browser | Lowest Version |
|---|---|
| Internet Explorer | --- |
| Firefox (Gecko) | 4.0 (2.0) -moz |
| Opera | --- |
| Safari (WebKit) | 3.1 -webkit |


Mozilla Developer Network