From 21e32015953a2a5fb1fb98183a35a3d99b009768 Mon Sep 17 00:00:00 2001 From: Misbah Ansari <150408924+MisbahAnsar@users.noreply.github.com> Date: Tue, 17 Sep 2024 12:24:46 +0530 Subject: [PATCH] Delete Eyes.jsx --- Eyes.jsx | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 Eyes.jsx diff --git a/Eyes.jsx b/Eyes.jsx deleted file mode 100644 index 947dfb7..0000000 --- a/Eyes.jsx +++ /dev/null @@ -1,46 +0,0 @@ -import React, { useEffect, useState } from 'react' - -const Eyes = () => { - const [rotate, setRotate] = useState(0); - - useEffect(()=>{ - window.addEventListener("mousemove", (e) => { - let mouseX = e.clientX; - let mouseY = e.clientY; - - let x = mouseX - window.innerWidth/2; - let y = mouseY - window.innerHeight/2; - - var angle = Math.atan2(y, x) * (180/Math.PI); - setRotate(angle-180); - }) - }) - - return ( -