Is that what you want. But still this would make it visible once mouse button is UP.
There is only one thing you can do, Make it transparent, But it still will be there, And you cannot achieve this perfectly without JS:
div {
border: 1px solid red;
height: 50px
}
div {
pointer-events: none;
opacity:1;
animation: hide 0.1s linear infinite;
animation-play-state: paused;
}
div a {
pointer-events: auto;
}
div:active {
animation-play-state: running;
}
@keyframes hide {
1%{
opacity:0;
position:absolute;
}
100% {
opacity: 0;
position:absolute;
}
}
<div>
<span>
<a>helo</a>
</span>
<span>
<a>hi</a>
</span>
</div>
Some randow text/element