CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS animation timing function Property

CSS animation-timing-function Property



The animation-timing-function is used to specify the speed curve of an animation. Speed curve is the TIME an animation uses to change from one set of CSS styles to another. It is used to make the changes smoothly.


Default Value:-


Its default value is ease.




Its syntax is:- animation-timing-function: linear | ease | ease-in | ease-out | ease-in-out | step-start | step-end | steps(int,start | end) | cubic-bezier(n,n,n,n) | initial | inherit;


Further Explanation:-


Value Description
linear The animation has the same speed from start to end
ease Default value. The animation has a slow start, then fast, before it ends slowly
ease-in The animation has a slow start
ease-out The animation has a slow end
ease-in-out The animation has both a slow start and a slow end
step-start Equivalent to steps(1, start)
step-end Equivalent to steps(1, end)
steps(int,start|end) Specifies a stepping function, with two parameters. The first parameter specifies the number of intervals in the function.  The second parameter is optional, is either the value start or end.
cubic-bezier(n,n,n,n) Define your own values in the cubic-bezier function. Value ranges from 0 to 1.
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS