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.
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;
|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.|