The animation-timing-function property in CSS is used to specify how the animation makes transitions through keyframes. That is, it is used to specify the motion of animation during transitions.
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;
- ease: With this property value, the animation starts slowly, then fast, and then finally ends slowly (this is default).
- linear: If this value is specified for the property then the animation plays with the same speed from start to end.
- ease-in: If this value is specified then the animation begins with a slow start.
- ease-out: If this value is specified for the property then the animation plays normally but ends slow. This is similar to ease-in.
- ease-in-out: With this property value, the animation both starts and ends slow.
Example: HTML Program to illustrate the above property values for animation-timing-function property.
Supported Browser: The browser supported by animation-play-state property are listed below:
- Google Chrome 43.0
- Internet Explorer 10.0
- Firefox 16.0
- Opera 30.0
- Safari 9.0
- HTML | DOM Style animationTimingFunction Property
- CSS | transition-property Property
- How to override the CSS properties of a class using another CSS class ?
- Difference between bootstrap.css and bootstrap-theme.css
- CSS | table-layout Property
- CSS | text-align Property
- CSS | border-top-width Property
- CSS | isolation Property
- CSS | border-inline-start-style Property
- CSS | column-rule-width Property
- CSS | word-spacing Property
- CSS | animation-delay Property
- CSS | margin-top Property
- CSS | border radius property
- CSS | grid Property
- CSS | font-size-adjust Property
- CSS | visibility Property
- CSS | Display property
- CSS | grid-template-columns Property
- CSS | height Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.