Harry Esses
Harry Esses

Reputation: 153

CSS3 how to make animation go in a loop and never stop?

I have a red square moving left and right. And then it stops, how do i make it that it goes on till i leave the web page?

Upvotes: 1

Views: 990

Answers (1)

jacktheripper
jacktheripper

Reputation: 14219

Add the property infinite

For example

-webkit-animation: NAME-OF-ANIMATION 10s linear infinite;

See this example

Upvotes: 3

Related Questions