transition-timing-function

  • Revision slug: CSS/transition-timing-function
  • Revision title: transition-timing-function
  • Revision id: 22021
  • Created:
  • Creator: CutenessOverload
  • Is current revision? No
  • Comment http://blogs.msdn.com/b/ie/archive/2012/05/31/windows-release-preview-the-sixth-ie10-platform-preview.aspx (Gotta copypasta...); 1 words added, 1 words removed

Revision Content

{{ CSSRef() }}

{{ SeeCompatTable() }}

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 {{ xref_csstimingfunction() }} 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 {{ cssxref("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.

<style type="text/css"></style>
  • {{ Xref_cssinitial() }}: ease
  • Applies to: all elements, {{ cssxref(":before") }} and {{ cssxref(":after") }} pseudo elements
  • {{ Xref_cssinherited() }}: no
  • Media: {{ Xref_cssinteractive() }}
  • {{ Xref_csscomputed() }}: as specified

Syntax

transition-timing-function: <timing-function> [, <timing-function>]*

where:

Each {{ xref_csstimingfunction() }} represents the timing function to link to the corresponding property to transition, as defined in {{ cssxref("transition-property") }}.

Examples

There are several examples of CSS transitions included in the main CSS transitions article.

Specifications

Browser compatibility

Browser Lowest Version
Internet Explorer 10
Firefox (Gecko) 4.0 (2.0) {{ property_prefix("-moz") }}
Opera ---
Safari (WebKit) 3.1 {{ property_prefix("-webkit") }}

See also

  • CSS transitions
  • {{ cssxref("transition") }}
  • {{ cssxref("transition-property") }}
  • {{ cssxref("transition-duration") }}
  • {{ cssxref("transition-delay") }}

{{ languages( { "ja": "ja/CSS/transition-timing-function"} ) }}

Revision Source

<p>{{ CSSRef() }}</p>
<p>{{ SeeCompatTable() }}</p>
<h3 id="Summary">Summary</h3>
<p>The<code> transition-timing-function </code>CSS property is used to describe how the intermediate values of the CSS properties being affected by a <a href="/en/CSS/CSS_transitions" title="en/CSS/CSS transitions">transition effect</a> are calculated. This in essence lets you establish an acceleration curve, so that the speed of the transition can vary over its duration.</p>
<p>This acceleration curve is defined using one {{ xref_csstimingfunction() }} for each property to be transitioned. </p>
<p>You may specify multiple timing functions; each one will be applied to the corresponding property as specified by the {{ cssxref("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 (<code>ease</code>). If there are more timing functions, the list is simply truncated to the right size. In both case the CSS declaration stays valid.</p>
<nobr>
<style type="text/css"><![CDATA[.cssprop {
  display:table;
  padding: 0.4em;
  border-left:0.15em solid;
  background-color:#eeeeff
}
.cssprop li {
 display:table-row;
 padding: 3px;
 margin:0;
}
.cssprop li dfn {
  display:table-cell;
  padding: 0 5px;
  border-bottom: none;
  cursor:inherit;
}

]]></style>
<ul class="cssprop"> <li><dfn>{{ Xref_cssinitial() }}:</dfn> <a href="/en/CSS/timing-function#ease" title="https://developer.mozilla.org/en/CSS/timing-function#ease"><code>ease</code></a></li> <li><dfn>Applies to:</dfn> all elements, {{ cssxref(":before") }} and {{ cssxref(":after") }} pseudo elements</li> <li><dfn>{{ Xref_cssinherited() }}:</dfn> no</li> <li><dfn>Media:</dfn> {{ Xref_cssinteractive() }}</li> <li><dfn>{{ Xref_csscomputed() }}:</dfn> as specified</li>
</ul></nobr><h3 id="Syntax">Syntax</h3>
<pre>transition-timing-function: <a href="mks://localhost/en/CSS/timing-function" title="en/CSS/timing-function">&lt;timing-function&gt;</a> [, <a href="mks://localhost/en/CSS/timing-function" title="en/CSS/timing-function">&lt;timing-function&gt;</a>]*
</pre>
<p>where:</p>
<dl> <dd>Each {{ xref_csstimingfunction() }} represents the timing function to link to the corresponding property to transition, as defined in {{ cssxref("transition-property") }}.</dd>
</dl>
<h3 id="Examples">Examples</h3>
<p>There are several examples of CSS transitions included in the main <a href="/en/CSS/CSS_transitions" title="en/CSS/CSS transitions">CSS transitions</a> article.</p>
<h3 id="Specifications">Specifications</h3>
<ul> <li><a class="external" href="http://www.w3.org/TR/css3-transitions" title="http://www.w3.org/TR/css3-transitions">CSS Transitions Module Level 3</a> (Working Draft)</li>
</ul>
<h3 id="Browser_compatibility">Browser compatibility</h3>
<table class="standard-table"> <tbody> <tr> <th>Browser</th> <th>Lowest Version</th> </tr> <tr> <td>Internet Explorer</td> <td>10</td> </tr> <tr> <td>Firefox (Gecko)</td> <td>4.0 (2.0) {{ property_prefix("-moz") }}</td> </tr> <tr> <td>Opera</td> <td>---</td> </tr> <tr> <td>Safari (WebKit)</td> <td>3.1 {{ property_prefix("-webkit") }}</td> </tr> </tbody>
</table>
<h3 id="See_also">See also</h3>
<ul> <li><a href="/en/CSS/CSS_transitions" title="en/CSS/CSS transitions">CSS transitions</a></li> <li>{{ cssxref("transition") }}</li> <li>{{ cssxref("transition-property") }}</li> <li>{{ cssxref("transition-duration") }}</li> <li>{{ cssxref("transition-delay") }}</li>
</ul>
<p>{{ languages( { "ja": "ja/CSS/transition-timing-function"} ) }}</p>
Revert to this revision