0
Why the animation property doesn't work in this code??
2 Respuestas
+ 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.
+ 1
Oh yeah thank you.😂😂😂😂😂 Its been two days my mind was about to blow. Thank you so much🙏