0
What's wrong in my code?
I'm trying to make an animation where a square (a div) rotates and changes its z-index (I will handle 2 divs later, so I need it), but I can't find what's wrong. https://code.sololearn.com/WC5ELj6t9p9k/?ref=app
3 Answers
+ 6
Juca Navaz Reque , the error is the space between rotate declaration and the degrees.
It should be rotate(0deg) and not rotate (0deg).
Here's a working code. Some lines are also redundant.
https://code.sololearn.com/W3OzK51fC8ui/?ref=app
+ 1
Lucky Luke Yes, I am using a mobile, but course's animations work fine for me, so I don't think that's the problem.
+ 1
JonathanP Lol, Code Playground wrote it, so I thought it wouldn't affect. Thank you! ^^