JavaScript How to play animation more than one time ❓ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

JavaScript How to play animation more than one time ❓

Onclick event- When you click on the button, the animation (CSS) plays. But when you click the button for the second time, the animation doesn't work. How do you make the animation play more than once -Onclick - ? I started a code here: https://code.sololearn.com/WHgGDH8D9f72/?ref=app Now we just have to fix the Onclick event to play more than once..

5th Jun 2019, 10:49 PM
Ginfio
Ginfio - avatar
7 Answers
+ 2
Matei Lazar , i'm not sure how and where i would place' for(...){ doc.....}the same
15th Jun 2019, 9:07 AM
Matei Lazar
+ 1
Matei Lazar , i'm not sure how and where i would place' for(...){ doc.....}
7th Jun 2019, 8:26 PM
Ginfio
Ginfio - avatar
0
use for (i=1; i<=5; i++) { document.write(i + "<br />"); } like that. OK? please answer
7th Jun 2019, 4:25 PM
Matei Lazar
0
Biraj , on that code, what is (e) ?
9th Jun 2019, 2:26 PM
Ginfio
Ginfio - avatar
- 1
don't know how 😬👀
5th Jun 2019, 11:09 PM
Ginfio
Ginfio - avatar
- 1
s
15th Aug 2019, 7:42 AM
Matei Lazar