benkaminski.com


Posts Tagged With: “background video”


Responsive CSS3 / HTML5 Video Background In div No Javascript Needed!


I needed a HTML5 video background to appear as the header on my web page. Did I mention that the page was responsive (Bootstrap) and the video needed to scale to width without destroying the aspect ratio, oh and that the containing div has a FIXED HEIGHT!!! Yeah, fun stuff considering I had never attempted this before. So, with some HTML5 and CSS3 trickery… I was able to accomplish this without having to use JavaScript at all! I mean, isn’t that the point of HTML5?



Read More...