The animation-duration property in CSS is used to define how long an animation should take to complete one cycle. That is it is used to specify the time duration for which animation will be played.
- time: This value is used to specify the length of time for which an animation will complete one cycle. This can be specified in either in seconds or in milliseconds. The default value is 0, which means that no animation will occur.
- initial: This value is used to set the property to its default value.
- inherit: This value is used to inherits the property from its parent element.
Example: HTML program to illustrate the animation-duration property in CSS.
Supported Browser: The browser supported by animation-duration property are listed below:
- Google Chrome 43.0
- Internet Explorer 10.0
- Firefox 16.0
- Opera 30.0
- Safari 9.0
- HTML | DOM Style animationDuration Property
- CSS | transition-property Property
- CSS | nav-right property
- CSS | all Property
- CSS | nav-up property
- CSS | nav-down property
- CSS | top Property
- CSS | right Property
- CSS | border-right Property
- CSS overflow-y Property
- CSS | bleed property
- CSS | resize Property
- CSS | columns Property
- CSS | flex Property
- CSS | align-self 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 firstname.lastname@example.org. 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.