JS animation | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

JS animation

Why is a JavaScript animation needed when I can do the animation with css?🤷🏽‍♂️ Or what I’m I missing

18th Jun 2020, 1:11 PM
Steve Dami
Steve Dami - avatar
1 Answer
+ 7
Suppose you want an animation when a button is clicked. You cant do this with CSS then you need JavaScript to add Event Handler to button and then add an animation to that button. Hope this helps.
18th Jun 2020, 1:26 PM
Souptik Nath
Souptik Nath - avatar