JSFiddle - React, Tailwind, and code Playground
by genelocklin
HTML
<iframe width="560" height="315" src="http://www.youtube.com/embed/gW7khoozUh0?wmode=transparent" frameborder="0" wmode="Opaque" frameborder="0" allowfullscreen></iframe>
<iframe width="560" height="315" src="http://www.youtube.com/embed/gW7khoozUh0?wmode=transparent" frameborder="0" wmode="Opaque" frameborder="0" allowfullscreen></iframe>
<iframe width="560" height="315" src="http://www.youtube.com/embed/gW7khoozUh0?wmode=transparent" frameborder="0" wmode="Opaque" frameborder="0" allowfullscreen></iframe>
<iframe width="560" height="315" src="http://www.youtube.com/embed/gW7khoozUh0?wmode=transparent" frameborder="0" wmode="Opaque" frameborder="0" allowfullscreen></iframe>
<iframe width="560" height="315" src="http://www.youtube.com/embed/gW7khoozUh0?wmode=transparent" frameborder="0" wmode="Opaque" frameborder="0" allowfullscreen></iframe>
<iframe width="560" height="315" src="http://www.youtube.com/embed/gW7khoozUh0?wmode=transparent" frameborder="0" wmode="Opaque" frameborder="0" allowfullscreen></iframe>
<iframe width="560" height="315" src="http://www.youtube.com/embed/gW7khoozUh0?wmode=transparent" frameborder="0" wmode="Opaque" frameborder="0" allowfullscreen></iframe>
<footer></footer>
CSS
iframe {
margin: 3em 0;
}
footer {
position: fixed;
bottom: 0;
width: 100%;
padding: 15px 0 0;
background: #FCFCFC;
border-top: 1px solid #DEDEDE;
box-shadow: 0px 0px 6px rgba(0,0,0,0.1);
height: 30px;
}
JavaScript
// Via : http://www.scorchsoft.com/news/youtube-z-index-embed-iframe-fix
$(document).ready(function ()
$('iframe').each(function()
var url = $(this).attr("src")
$(this).attr("src",url+"?wmode=transparent")
);
);