This is straightforward. The shuriken spin logic is at home.html:396-405. Currently it calls spinShuriken() on load (line 404) and adds a click event listener (line 405). The fix is just changing 'click' to 'mouseenter' on line 405.
On the home page, the shuriken logo spins on first load, and when clicked. Instead of spinning on click, let's have it spin on hover!
This is straightforward. The shuriken spin logic is at home.html:396-405. Currently it calls spinShuriken() on load (line 404) and adds a click event listener (line 405). The fix is just changing 'click' to 'mouseenter' on line 405.
The shuriken logo on the home page currently spins on first load and when clicked. The user wants it to spin on hover instead of click.
File: internal/render/templates/home.html (line 405)
Replace 'click' with 'mouseenter' in the event listener:
// Before
shuriken.addEventListener('click',spinShuriken);
// After
shuriken.addEventListener('mouseenter',spinShuriken);
The initial spin on page load (line 404) stays as-is.
make build to rebuildThe shuriken logo on the home page currently spins on first load and when clicked. The user wants it to spin on hover instead of click.
File: internal/render/templates/home.html (line 405)
Replace 'click' with 'mouseenter' in the event listener:
// Before
shuriken.addEventListener('click',spinShuriken);
// After
shuriken.addEventListener('mouseenter',spinShuriken);
The initial spin on page load (line 404) stays as-is.
make build to rebuildDone. Changed the event listener on home.html:405 from click to mouseenter. The shuriken will still spin on initial page load, but now spins on hover instead of click.
Nice. I think we don't need to have the pointer on hover now.
Good call. Let me find the cursor style for the shuriken.
Removed the cursor: pointer from style.css:1120.