ajmnz / custom-cursor-react

🎉 Animated, customizable and interactive cursor for React
https://ajmnz.github.io/custom-cursor-react
MIT License
48 stars 16 forks source link

Is there a way to change the color/other attributes of the cursor on target? #22

Closed AmeyVijeesh closed 2 years ago

AmeyVijeesh commented 2 years ago

On target, I want the cursor to change color, and change maybe some of its attributes. It is possible?

P.S it would be great if there was a feature to add text on the cursor :)

ajmnz commented 2 years ago

It is not possible to change color on target hover, since there's no onChange callback available. Though you could dynamically change the fill prop when a target is hovered using React Context or other state libraries.

PRs are welcome too!