+ 3

Why @keyframes doesn't work after i change class?

I want to these blocks (red, black and red) turn back after click with the same animation. https://code.sololearn.com/WaHGl5IV7U8T/?ref=app

14th Jul 2020, 5:05 PM
Pavel Durov
Pavel Durov - avatar
4 Respuestas
+ 2
CSS sheet is broken, <!-- turn back --> on line 97 causes an error due to not being the correct way to comment in css. remove the line or change too /*turn back*/ and It should all work
14th Jul 2020, 5:48 PM
JME
+ 3
JME Ohh!! Maybe! Cuz I never saw any problem with text outside the curly braces! 👍 I am sorry, if you felt that I was being rude!(not at all my intention)
14th Jul 2020, 10:44 PM
Namit Jain
Namit Jain - avatar
+ 2
JME Please confirm everything before giving any advice! That won't affect the code as that isn't in any of the brackets! Clipsmit your code is perfect! Now what you have to do is use js! Do you want the solution?
14th Jul 2020, 7:45 PM
Namit Jain
Namit Jain - avatar
+ 1
Namit Jain please confirm everything before giving critique. Having an improper comment prevents .altfirstblock css from being applied correctly as it changes the selector from being a class to being gibberish followed by a class
14th Jul 2020, 9:39 PM
JME