I changed standard cursor to grab. What i would like in addition is that cursor (grab) changes color, not background.
Here is a part from javascript. I manage with "grab" but not with color change. Any advice?
x.addEventListener('mouseover', () => {
// Change the button's background color
x.style.cursor = "grab";
x.style.Color = "red"
});
2
Answers
I think that it is possible to make svg images with different colors and connect them with the colors that are needed, an example of connecting svg is at the link.
MDN Web/CSS/cursor
You can assign a custom image as the cursor when hovering over the button.
Supported image file formats