+ 2

Why my animation is not working ☹️?

I learnt this from YouTube....and I was so happy, because it's so easy to code, but it's not working...can someone here to help me in this code??? https://code.sololearn.com/WHzyHjWBEaY6/?ref=app

30th Jan 2022, 3:12 PM
Pooja Sahoo
Pooja Sahoo - avatar
5 Answers
+ 2
you need to add animation-duration property. The animation-duration property defines how long an animation should take to complete. If the animation-duration property is not specified, no animation will occur, because the default value is 0s
30th Jan 2022, 3:29 PM
Vishal
Vishal - avatar
+ 2
Use this code. You did not set the animation-duration property. That's why the animation didn't work. div{ background:#00a0a0; border:5px solid green; width:90px; height:90px; border-radius:10px; position:relative ; animation: anime 9s 100 3s; } the animation-duration property here is 9s
30th Jan 2022, 5:39 PM
Emms
Emms - avatar
+ 1
You never set animation-duration property.
30th Jan 2022, 3:30 PM
cadbrooke
cadbrooke - avatar
+ 1
Set animation-duration animation-name : anime; animation-duration : 4s;
30th Jan 2022, 3:31 PM
Jayakrishna 🇮🇳
+ 1
Thanks to all for their answer 🙏😊
5th Feb 2022, 7:44 AM
Pooja Sahoo
Pooja Sahoo - avatar