hide the cursor with cursor-hidden class rather than element.style