Open evgenyvinnik opened 6 months ago
Love the idea of having a custom react element with a custom cursor, also the cursor effect is very pleasing.
This is exactly what I pictured in my mind when I setup the challenge, having something you can drop into your project to make it work for April Fools. So good!
Code: https://github.com/evgenyvinnik/rotating-cursor
Live demo: https://evgenyvinnik.github.io/rotating-cursor/
Video: https://youtu.be/jzbybHXtTvI
Flavor text for the submission: Quite proud of the result because how universal it is really (it is so universal in fact that I decided that I do not want to bother with some custom UI and just went with the straight out of the box React template): what we have here is a React Component
<CursorArea/>
which could wrap any other component like this:Padding is required - that is our "capture" zone, in which we would listen to mouse events and display custom cursor (which I have chosen to be the gauntlet BTW).