@odopod/odo-background-video

Plays in the background when the element comes into view and falls back to an image if the browser cannot autoplay video.

Usage no npm install needed!

<script type="module">
  import odopodOdoBackgroundVideo from 'https://cdn.skypack.dev/@odopod/odo-background-video';
</script>

README

Odo Background Video

Add a odo video component which plays in the background when

Install

npm install @odopod/odo-background-video --save

Quick Start

import OdoBackgroundVideo from '@odopod/odo-background-video';

const backgroundOne = new OdoBackgroundVideo(document.querySelector('#background-example-one'));

Documentation

Visit the Odo component directory for demos, code examples, and documentation.