I made a background-animation for a website. The animation reacts to the cursor position. It is created with processing. I put it on the site via the canvas-element.
Now I want to put some html-elements above the animation, mostly text and some simple colored div-container. I managed to do this with the attributes position and z-index.
But now of course, the processing-animation within the canvas-element won't react to the cursor anymore, if he is over one of the higher z-index elements.
Is there a way to let every element - regardless of its z-position - react to the cursor?