Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
webda2l authored Jul 2, 2024
1 parent 1cd2385 commit c506a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h1>@2LiX Web Production</h1>
: e.touches?.[0] ?? { clientX: window.innerWidth / 2, clientY: window.innerHeight / 2 };
const centerX = window.innerWidth / 2;
const centerY = window.innerHeight / 2;

requestAnimationFrame(() => {
document.documentElement.style.setProperty('--move-x', (clientX - centerX) / centerX);
document.documentElement.style.setProperty('--move-y', (clientY - centerY) / centerY);
Expand Down

0 comments on commit c506a39

Please sign in to comment.