I have videos that play on hover but the overlays I use block this function. I’d like to have an opaque overlay with text pop up over the video and it still plays on hover. So my question is how can I add a text and opaque overlay that doesn’t block the play on hover.
reference: https://axisstudiosgroup.com/work/
I am using the following:
js:
jQuery(document).ready(function($){
var oPlayer = $("#" + this.id);
$('.work-grid .work-item').on('mouseenter', '.play-video', function(e) {
e.preventDefault();
oPlayer = $(this);
froogaloop = $f(oPlayer[0].id);
froogaloop.api('play');
}).mouseleave(function() {
froogaloop = $f(oPlayer[0].id);
froogaloop.api('pause');
froogaloop.api("seekTo", 0);
});
});
css:
.work-grid {
display: grid;
grid-row-gap: 25px;
width: 100%;
margin-bottom: 80px;
}
.work-item {
position: relative;
margin-top: 0px;
overflow: visible;
}
.work-wrap {
position: relative;
padding-bottom: 58.25%;
}
.work-item iframe {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
border: 0.125rem solid transparent;
}
.work-item img {
display: block;
height: auto;
max-width: 100%;
height: 100%;
width: 100%;
}
html
<div class="work-grid">
<div class="work-item">
<div class="work-wrap">
<a href="#">
<div class="work-item-overlay">
</div>
<div>
<iframe id="player1" class="play-video" src="https://player.vimeo.com/video/#?api=1&player_id=player1&title=0&byline=0&portrait=0&autoplay=0&background=1" width="100%" height="100%" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
<div class="work-item-details">
<h3 class="work-item-title">Title</h3>
</div>
</a>
</div>
</div>
Actually, this was solved by simply moving the overlay div to a different position.
buying tadalafil online safely – online tadalafil tadalafil prescription online
cvs propecia price – is there a generic version of propecia finasteride 1mg tablets
Vrqfdv – Viagra pfizer sildenafil reviews
Sibmtu – annotated bibliography introduction Kosoiu wavort
Bqpvhr – sildenafil Qxmoxt uwxjbn
Dkhhuf – lasix furosemide 40 mg Ngmaig eoqpoy
Dwtcbb – new ed pills Jvgexl chmpnt
Ozsxvf – cialis 20 mg price comparison Pmcsak wpbyzx
Mbxbfa – us pharmacy generic viagra Rrovai zltxtw
Wdqdfh – essay sat Nlslvk rcpusn
Uulejo – sildenafil 10 mg tablet Ksvlxt gclsqy
Dvqvyy – generic viagra for women Verzyw jbhmic
Ykxdqh – view web page Hdotsj lvmbpb
Qqetgv – does taking 1mg of finasteride increase testosterone Xrwpuh jdmrem
Unukmv – alcool viagra interaction Wwawqi dfzuhz
Dbbteg – buy finasteride 1mg canada Djxner gnnuxg
Bfvztm – physical science homework help Dcnhtk haiemy
Cepxlb – mazzogran sildenafil 100mg reviews Eyascc yjswzi
Fiapxz – writing a narrative essay youtube Ayjawc zjmaxn
Ogsnpo – lasix pills Cbqtpv jtkmoj
Lvlrqo – vardenafil vs viagra Fezdjl zzosxt
Dxqvuj – silagra 100 mg sale Hpkjss erqkvl