The transition-timing-function 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.

  • Initial valueease
  • Applies toAll elements, :before and :after pseudo elements
  • InheritedNo
  • MediaInteractive
  • Computed valueSame as specified value
  • AnimatableNo
  • CSS VersionCSS3
  • JavaScript syntaxobject.style.transitionTimingFunction
Formal syntax: <single-transition-timing-function> [ ',' <single-transition-timing-function> ]*

transition-timing-function: [value];
<single-transition-timing-function> = ease | linear | ease-in | ease-out | ease-in-out | step-start | step-end | steps(<integer>[, [ start | end ] ]?) | cubic-bezier(<number>, <number>, <number>, <number>)
  • easeThe ease function is equivalent to cubic-bezier(0.25, 0.1, 0.25, 1).
  • linearThe linear function is equivalent to cubic-bezier(0, 0, 1, 1).
  • ease-inThe ease-in function is equivalent to cubic-bezier(0.42, 0, 1, 1).
  • ease-outThe ease-out function is equivalent to cubic-bezier(0, 0, 0.58, 1).
  • ease-in-outThe ease-in-out function is equivalent to cubic-bezier(0.42, 0, 0.58, 1)
  • step-startThe step-start function is equivalent to steps(1, start).
  • step-endThe step-end function is equivalent to steps(1, end).
  • steps(<integer>[, [ start | end ] ]?) Specifies a stepping function, described above, taking two parameters. The first parameter specifies the number of intervals in the function. It must be a positive integer (greater than 0). The second parameter, which is optional, is either the value 'start' or 'end', and specifies the point at which the change of values occur within the interval. If the second parameter is omitted, it is given the value 'end'.
  • cubic-bezier(<number>, <number>, <number>, <number>)Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2). Both x values must be in the range [0, 1] or the definition is invalid. The y values can exceed this range.
.class {
   transition-timing-function: cubic-bezier(0.3, 0.6, 1.0, 0.2)
}
?Firefox?Explorer?Chrome?Safari?Opera


Last updated on 23rd March 2014 By Rene Spronk

View All CSS Properties

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.