Cuberto / mouse-follower

A powerful javascript library to create amazing and smooth effects for the mouse cursor on your website.
MIT License
724 stars 60 forks source link

Mouse Follower Cursor Text and Size Persist Across Page Navigation in Next.js Project #45

Open venilsutariya opened 1 month ago

venilsutariya commented 1 month ago

I have a project section similar to Cuberto's, where I've enabled the data-cursor-text="Explore" attribute for images. When I click on an image to navigate to another page, the Mouse Follower cursor still displays the text "Explore" and retains its enlarged size on the new page.

<Image src={project.imageUrl} alt={project.name} height={450} width={645} className="hover:scale-[1.05] cursor-pointer" style={{ transition: "all 0.5s linear" }} onClick={() => handleClick(project.href)} layout="responsive" loading="lazy" data-cursor-text={"Explore"} />

venilsutariya commented 1 month ago

How can I set Mouse Follower to its default state with no text and default sizing? at page where i am navigating or can i set it default when i click on image ?

HerrKise commented 2 weeks ago

Did you find a solution?