youtube trying to overflow container -responsive
by ian_smithz
HTML
<div class="iframe-container">
<iframe src="https://www.youtube.com/embed/wz3V80uKl_E?rel=0&controls=0&showinfo=0&autoplay=1&mute=1&loop=1&&playlist=wz3V80uKl_E" allow="autoplay; encrypted-media" frameborder="0"></iframe>
</div>
CSS
.iframe-container {
width: 100%;
height: 400px;
background: #666;
overflow: hidden;
}
JavaScript
$('.iframe-container iframe').css({ width: $(window).innerWidth() + 'px', height: (($(window).innerWidth())*0.5625) + 'px' });