Need a little help at JS. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Need a little help at JS.

Why my this code is not performing animation after the button is clicked? How can i correct it? https://code.sololearn.com/Ww5Mx7o5bcVj/?ref=app Thanks for answering.

18th Oct 2017, 5:48 PM
Isair Calhawk
Isair Calhawk - avatar
4 Answers
+ 8
Kindly please refer to the code below and let me know if you still need any help. 😉 https://code.sololearn.com/WYF8e3WTzjjq/?ref=app
19th Oct 2017, 2:58 AM
Zephyr Koo
Zephyr Koo - avatar
+ 6
Sure you're welcome! 😄 Basically adding the animation "Exec" to the button does the animation job so removing it after the animation finished (0.5 second) allows you to trigger it indefinitely. 👍
19th Oct 2017, 5:32 AM
Zephyr Koo
Zephyr Koo - avatar
+ 3
Oh I got it. Thanks
19th Oct 2017, 5:33 AM
Isair Calhawk
Isair Calhawk - avatar
+ 1
Thanks @Zephyr Koo but can you please explain me how did you do that.
19th Oct 2017, 3:00 AM
Isair Calhawk
Isair Calhawk - avatar