100-project-100-days-website/100_projects/29-glassmorphism-login-form/app.js

5 lines
186 B
JavaScript
Raw Normal View History

2023-03-22 11:00:30 +03:00
const pos = document.documentElement;
pos.addEventListener("mousemove", e => {
pos.style.setProperty('--x', e.clientX + "px");
pos.style.setProperty('--y', e.clientY + "px");
});