Background Video
An optimized, GPU-accelerated component for displaying background video in a Hero section - with no CPU strain and full respect for accessibility.
Efficient Background Video
An optimized, GPU-accelerated component for displaying video in the background of a section (e.g. a Hero).
The Future of B2B
Build your system faster and more efficiently with a modern architecture.
<section class="bg-video-container" style="min-height: 70vh; display: flex; align-items: center;">
<!-- 1. FALLBACK IMAGE (Poster) -->
<img src="img/hero-poster.jpg" alt="Background" class="bg-video" style="z-index: -3;">
<!-- 2. VIDEO (Optimized attributes) -->
<video class="bg-video" autoplay loop muted playsinline poster="img/hero-poster.jpg">
<source src="video/hero-bg.webm" type="video/webm">
<source src="video/hero-bg.mp4" type="video/mp4">
</video>
<!-- 3. HERO CONTENT -->
<div class="container position-relative text-white z-index-1">
<h1 class="text-10 fw-black mb-3">Section Title</h1>
<p class="text-6 opacity-75 mb-4">Hero section description over the video background.</p>
<button class="btn btn-primary btn-lg">Action</button>
</div>
</section>