+ 3

How to run the animation infinite time in CSS?

guys I am making a programming in my PC so how can I make the animation run infinitely for example /*Slide is the name of the animation*/ @-webkit-keyframes slide{ 0%{background: red;} 5%{background: blue;} } @keyframes slide{ 0%{background: red;} 5%{background: blue;} } so how to run it for infinite time for 4s dur. //please give the answer very soon if possible.

18th Dec 2017, 4:06 PM
šŸ¦‹FEATHERšŸ¦‹
šŸ¦‹FEATHERšŸ¦‹ - avatar
6 Answers
+ 8
Use this property animation-iteration-count:infinite; edit::https://code.sololearn.com/WFkO9RlRuxyD/?ref=app
18th Dec 2017, 4:26 PM
Ranjan Bagri
Ranjan Bagri - avatar
+ 7
This property sets the number of times you want to play the animation. You can give it either any natural number or infinite in its value.
19th Dec 2017, 11:33 AM
Ranjan Bagri
Ranjan Bagri - avatar
+ 5
use this property ā†“ā†“ā†“ animation: slide 4s infinite; -webkit-animation: slide 4s infinite;
18th Dec 2017, 4:56 PM
Amethyst Animion
Amethyst Animion - avatar
+ 3
Use it please ā†“ā†“ā†“ :) animation-iteration-count: infinite;
18th Dec 2017, 4:24 PM
James16
James16 - avatar
+ 3
thanks to all I would try it now.
19th Dec 2017, 11:04 AM
šŸ¦‹FEATHERšŸ¦‹
šŸ¦‹FEATHERšŸ¦‹ - avatar
+ 3
what is the work of animation-iteration-count.
19th Dec 2017, 11:05 AM
šŸ¦‹FEATHERšŸ¦‹
šŸ¦‹FEATHERšŸ¦‹ - avatar