+ 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
9th Jun 2018, 4:04 AM
CalviŐ˛
CalviŐ˛ - 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