How to make a Button follow the mouse with JS? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
- 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 Antwort
+ 3
with css property position, and updating its position at regular (short) intervals with js.
6th Feb 2021, 12:43 AM
visph
visph - avatar