I would like to overlay an SVG overtop an entire webpage, cursor included. Is there any way to change the z order of a browser’s cursor so that it renders underneath a semi-transparent SVG?
I would like to overlay an SVG overtop an entire webpage, cursor included. Is there any way to change the z order of a browser’s cursor so that it renders underneath a semi-transparent SVG?
2
Answers
Can’t you use SVG in a
cursor:url( ... )
No. You cannot change the
z-index
of the normal pointer. But you could:When you show the overlay SVG:
cursor: none
)mousemove
ebent handlerpointer-events: none
so that it does not block clicks on the content underneathWhen/if you hide the overlay:
cursor: auto
)