Is it possible to somehow force the function to start if the user does not move the mouse for 5 seconds? There is a hidden div with animation, it is necessary that it does not appear immediately when the page is loaded, or not just after 5 seconds, namely when the mouse cursor is 5 seconds long.
At the same time, if he moves the mouse, then the timer is discarded and starts counting only when the cursor again stops.