Skip to content

Commit b90881c

Browse files
Create Ui.js
1 parent 811a632 commit b90881c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

assets/js/Ui.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const glow = document.getElementById("glow-cursor");
2+
3+
window.addEventListener("mousemove", (e) => {
4+
glow.style.left = e.clientX + "px";
5+
glow.style.top = e.clientY + "px";
6+
});

0 commit comments

Comments
 (0)