From 75adfa6f3ca37d7e4fd3445d46363bfd2ddeff6a Mon Sep 17 00:00:00 2001 From: No0ne003 Date: Sun, 14 Apr 2024 17:03:14 +0100 Subject: [PATCH] improve cursor and fix bugs --- src/components/Cursor.jsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/Cursor.jsx b/src/components/Cursor.jsx index dab9594..ef4e9df 100644 --- a/src/components/Cursor.jsx +++ b/src/components/Cursor.jsx @@ -1,6 +1,6 @@ import { useEffect, useState } from "react"; import { motion } from "framer-motion"; -import { FaArrowAltCircleRight } from "react-icons/fa"; +import { FaArrowRight } from "react-icons/fa"; const Cursor = ({ cursorVariant }) => { const [mousePosition, setMousePosition] = useState({ @@ -25,26 +25,26 @@ const Cursor = ({ cursorVariant }) => { const variants = { default: { - x: mousePosition.x - 16, - y: mousePosition.y - 16, + scale: 1, }, text: { - x: mousePosition.x - 75, - y: mousePosition.y - 75, - height: 150, - width: 150, + scale: 3, }, }; return ( {cursorVariant === "text" ? (

- +

) : null}