The CSS ‘animation-timing-function‘ property specifies the speed curve of an animation, defining how an animation progresses over its duration. This property controls the acceleration and deceleration of the animation, making it possible to create more natural and visually appealing movements by adjusting the pacing between the animation’s start and end points.
CSS ‘animation-timing-function’ Property Example
See the Pen CSS ‘animation-timing-function’ Property by Webzstore (@webzstore) on CodePen.
The ‘animation-timing-function’ property is essential for creating engaging and dynamic animations. It offers a wide range of options to tailor the speed and pacing of CSS animations. By understanding and applying different timing functions, developers can significantly enhance the user experience of web interfaces.
Browser Support For ‘animation-timing-function’ Property
![]() | ![]() | ![]() | ![]() | ![]() |
| 16.0 5.0 -moz- | 9.0 4.0 -webkit- | 43.0 4.0 -webkit- | 10.0 | 30.0 15.0 -webkit- 12.0 -o- |
CSS Syntax of the ‘animation-timing-function’ Property
animation-timing-function: ease|ease-in|ease-out|ease-in-out|linear|step-start|step-end|steps(int,start|end)|cubic-bezier(n,n,n,n);
Usage of the ‘animation-timing-function’ Property
Use ‘animation-timing-function’ to customize the pacing of your animations. This property enhances the realism and sophistication of animations, allowing for more engaging and dynamic interactions. It’s useful for simulating physical phenomena, like easing in (slow start), easing out (slow end), or both.
Property Values of the ‘animation-timing-function’ Property
- Ease: The default value. The animation starts slowly, accelerates in the middle, and slows down at the end.
- Ease-in: The animation starts slowly and then accelerates.
- Ease-out: The animation starts at full speed and then decelerates.
- Ease-in-out: The animation starts and ends slowly, with acceleration in the middle.
- Linear: The animation maintains a constant speed from start to end.
- Step-start: The animation jumps to the end value at the start.
- Step-end: The animation jumps to the end value at the end.
- Steps(int, start | end): This parameter splits the animation into a specific number of steps. The second parameter (start or end) specifies when the change to the new value occurs within each step.
- Cubic-bezier(n, n, n, n): Defines a custom cubic Bezier curve. The four values specify the curve’s control points, allowing for precise control over the timing function.






Leave a Reply