I have a thumbnail caption that shows the project title when hovering. To make hovering work on touch devices i added a script that makes that possible. Only it is too responsive, which sounds weird to say, but i don't want it to work directly on the first touch but on the second touch show the thumb-caption and on the thirth touch open the link. I tried to find a example and dia.tv uses this behavior which is build differently, but it works like the way i describe and would like to achieve.
HTML
<div class="grid-thumb">
<a href="/work/test">
<img
src="data:image/svg+xml;charset=utf-8,%3Csvg xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' viewBox%3D'0 0 3508 2480'%2F%3E"
data-src="/images/test_thumb.jpg"
class="lazyload"
alt="">
<div class="thumb-caption">Project title</div>
</a>
</div>
JS
$(document).ready(function() {
$('body').bind('touchstart', function() {});
});
CSS
.thumb-caption {
background-color: transparent;
opacity: 0;
position: absolute;
text-align: center;
padding: 20px;
width: 90%;
top: 50%;
left: 50%;
-webkit-transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
z-index: 4;
}
.grid-container a:hover img {
opacity: 0;
-webkit-transition: opacity 0.2s;
transition: opacity 0.2s;
}
.grid-container a:hover .thumb-caption {
opacity: 1;
-webkit-transition: opacity 0.2s;
transition: opacity 0.2s;
}