Hello i have a slider which allows for images and videos,
i am tryin to fix an overlay over my video on the slider but when ever i try it the video stops playing and acts like an image with the overlay present on it link to my page where slider exists
http://whitechapelandpartners.com/flex/
and this what i am trying that has given me this result
credit : http://codepen.io/icutpeople/pen/whueK
.video-container {
position: relative;
}
video {
height: auto;
vertical-align: middle;
width: 100%;
}
.overlay-desc {
background: rgba(255, 0, 0, 0.37);
position: absolute;
top: 0; right: 0; bottom: 0; left: 0;
display: flex;
align-items: center;
justify-content: center;
}
<?php if($type == 'video'){?>
<div class="video-container">
<video width="320" height="240" controls>
<source src="<?php echo $row_slide['path']; ?>" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="overlay-desc">
<h1>Waynes World</h1>
</div>
</div>
<?php }?>
any help to why my video stops playing