Skip to content

Do not execute JS if hovering over specific element

I have a custom cursor implemented and I do not want this cursor to be visible when hovering over the .header element. To achieve this, I’ve tried: However, that doesn’t work. Working demo below with my attempt commented out: Answer I would only attach the mouse move listener to sections. I have a…