0

Why the animation property doesn't work in this code??

https://code.sololearn.com/WUKUPCB50D48

14th Feb 2022, 8:21 AM
Anoir B'f
Anoir B'f - avatar
2 RĂ©ponses
+ 3
In both the animations you have written - transform: rotate(-50%deg); Here the % is wrong in rotate % don't come. your code should be - @keyframes danceLeft { 0% { transform: rotate(-50deg); } 50% { transform: rotate(-30deg); } 100% { transform: rotate(-50deg); } } @keyframes danceRight { 0% { transform: rotate(50deg); } 50% { transform: rotate(30deg); } 100% { transform: rotate(50deg); } } Then it works fine.
14th Feb 2022, 9:08 AM
Shaurya Kushwaha
+ 1
Oh yeah thank you.😂😂😂😂😂 Its been two days my mind was about to blow. Thank you so much🙏
14th Feb 2022, 9:13 AM
Anoir B'f
Anoir B'f - avatar