How to make a Button follow the mouse with JS? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

How to make a Button follow the mouse with JS?

How can a Button be made/placed to follow the cursor?

6th Feb 2021, 12:42 AM
Philipp
Philipp - avatar
1 Answer
+ 3
with css property position, and updating its position at regular (short) intervals with js.
6th Feb 2021, 12:43 AM
visph
visph - avatar