I'm currently in the process of developing a project where I want to create a web application with a mouse cursor that appears as a circle with a customizable radius, which can be altered by the user. The main requirement is for this custom cursor to only be visible within a specific element on the webpage, while still allowing user interaction through clicks.
As far as my brainstorming goes, it seems like my potential options involve using JavaScript to change the cursor image, but this would mean needing an image for every possible value of r selected by the user.
Alternatively, I could consider implementing a canvas element that tracks the cursor and draws a circle with the specified radius within it. However, there is uncertainty regarding whether the original element will retain its ability to receive user clicks with this approach.
Do you have any ideas or suggestions? Is there a more efficient solution that I might not be considering?