How do I make a button that makes an animation when I mouse over? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do I make a button that makes an animation when I mouse over?

slide, expand, rotate, etc.

5th Apr 2018, 2:58 AM
Manuel Azriel
Manuel Azriel - avatar
1 Answer
+ 6
You can use the JavaScript to do that. You know you can change through JavaScript. You just need to change the width of the button when the mouse is on the button and when its not on it , remains to its original size. You can use onmouseover and onmousedown events for that. You can only rotate it through JavaScript with same events onmousedown and onmouseover.
5th Apr 2018, 3:10 AM
Akash Pal
Akash Pal - avatar