Animation through buttons | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Animation through buttons

What if I want to trigger an animation by pressing a button ? What and how should I use for the code given below :- https://code.sololearn.com/WmjuJkHiBvJ4/?ref=app

9th Jun 2018, 3:51 AM
Hemant Jaiswal
Hemant Jaiswal - avatar
6 Answers
+ 7
Calviղ Beat me to it. Yes, perfect example. Cheers
9th Jun 2018, 4:05 AM
Tony
Tony - avatar
+ 6
Use Javascript and an html <form>. You can also make the div the button as well, without having a separate button. More JS 😬
9th Jun 2018, 4:03 AM
Tony
Tony - avatar
+ 6
Anthony Quick Calviղ Rahul George Thanks guys, this will definately help me 😊
9th Jun 2018, 5:36 AM
Hemant Jaiswal
Hemant Jaiswal - avatar
+ 5
Hemant Jaiswal Cheers! :)
9th Jun 2018, 6:20 AM
Tony
Tony - avatar