diff --git a/src/main.ts b/src/main.ts index c4691d9..0e4adde 100644 --- a/src/main.ts +++ b/src/main.ts @@ -125,7 +125,7 @@ let setImages = () => { const root = document.documentElement; const onMove = (ev: MouseEvent) => { - let rotateY = `${(ev.clientX - window.innerWidth / 2) * 0.005}deg`; + let rotateY = `${-(ev.clientX - window.innerWidth / 2) * 0.005}deg`; let rotateX = `${(ev.clientY - window.innerHeight / 2) * 0.005}deg`; root.style.setProperty("--rotate-x", rotateX); root.style.setProperty("--rotate-y", rotateY);