Streaming live at 10am (PST)

Hide a div when mouse is inactive for 5 seconds

Hi guys,

I have a quick question: How can I hide a div when mouse is inactive for 5 seconds then show div when clicked anywhere on the background. I can use interactions for the second part, show div when clicked, but the first one probably needs some custom code.