Add background video in Reveal.js

You can apply background video by adding 'data-background' attribute to your 'section' element. You can apply these attributes to add video and other options. i.e: data-background-video, data-background-video-loop, data-background-video-muted and data-background-size

Code Structure
<section data-background-video="homepage-video.mp4,homepage-video.webm" data-background-video-loop data-background-video-muted>
 <h2>Video</h2>
</section>

Share this

Related Posts