+ 1

Why my rotation animation change direction ?

I don't understand I tried animation-direction: normal; but at the end, the square rotate in reverse direction I want the square rotate infinitely How can I do that ? Thanks https://code.sololearn.com/W9U98D6SdE53/?ref=app

18th Apr 2020, 10:22 PM
Joanna Pichon
Joanna Pichon - avatar
2 ответов
+ 3
Problem is with your keyframes. Use from-to instead. @keyframes colorchange { from { transform:rotate(0deg); } to { transform:rotate(359deg); } }
18th Apr 2020, 11:09 PM
ChaoticDawg
ChaoticDawg - avatar
+ 1
Perfect thank you !
18th Apr 2020, 11:27 PM
Joanna Pichon
Joanna Pichon - avatar