UNPKG

@atmtfy/video-background

Version:

Automatic background video from various sources (Youtube, MP4, vimeo) with autoplay across devices. No JS dependencies.

6 lines (5 loc) 186 B
import { VideoBackground } from "./videoBackground"; import "./styles/main" if (!customElements.get('video-background')) { customElements.define('video-background', VideoBackground) }