So, right now I have this clean CSS based popup, that opens on the link click.
My question is, is it possible to open it on the mouse move (anywhere on the page).
I'm trying to achieve so that only real humans with a mouse movement will open it up. And bots, crawlers, that don't do that, will not.
If it's not possible, then open it on a page load?
I would like to have a non jQuery solution.
If non jQuery is impossible, then using jQuery will work, but open the same CSS popup that I have.
Any help would be appreciated.
.modalDialog {
position: fixed;
font-family: Arial, Helvetica, sans-serif;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 99999;
opacity: 0;
pointer-events: none;
}
.modalDialog:target {
opacity: 1;
pointer-events: auto;
}
.modalDialog>div {
width: 370px;
position: relative;
margin: 10% auto;
padding: 27px 22px 14px 22px;
border-radius: 10px;
background: #fff;
box-shadow: 0px 0px 13px 3px #555;
}
<div id="pop" class="modalDialog">
<div>
<p>PopUp Content</p>
<a href="#">close</a>
</div>
</div>
<a href="#pop" id="myBtn">Open popup</a>