My goal is to incorporate a background video for VH1 and VH2 that remains fixed but stops at VH3. When a user opens the page, they will see #VH1 and the #videoBG as a background video. As they continue scrolling, they will reach #VH2 without the background video changing (it stays fixed). However, once they scroll down to #VH3, a different background image will appear.
<video playsinline autoplay muted loop id="videoBG">
<source src="bg.mp4" type="video/mp4">
</video>
<div class="vh" id="vh1">
text 1
</div>
<div class="vh" id="vh2">
text 2
</div>
<div class="vh" id="vh3">
text 3
</div>
<style> .vh { width: 100vw; height: 100vh; } #vh3 { background: url(IMG/bg1.jpg); background-repeat: no-repeat; background-size: cover; } </style>