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 ( -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ) -} - -export default Eyes \ No newline at end of file