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

24th Jul 2018, 3:05 PM
Juca Navaz Reque
Juca Navaz Reque - avatar
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
24th Jul 2018, 3:21 PM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 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.
24th Jul 2018, 3:15 PM
Juca Navaz Reque
Juca Navaz Reque - avatar
+ 1
JonathanP Lol, Code Playground wrote it, so I thought it wouldn't affect. Thank you! ^^
24th Jul 2018, 3:30 PM
Juca Navaz Reque
Juca Navaz Reque - avatar