5 lines
186 B
JavaScript
5 lines
186 B
JavaScript
|
const pos = document.documentElement;
|
||
|
pos.addEventListener("mousemove", e => {
|
||
|
pos.style.setProperty('--x', e.clientX + "px");
|
||
|
pos.style.setProperty('--y', e.clientY + "px");
|
||
|
});
|