Set a video as your HTML background.
$ bower install video-bg --save
Or download as ZIP.
-
Import Web Components' polyfill:
<script src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
-
Import Custom Element:
<link rel="import" href="bower_components/video-bg/dist/video-bg.html">
-
Start using it!
<video-bg srcs=["video.mp4","video.ogg", "video.webm"] muted="muted"></video-bg>
Attribute | Options | Default | Description |
---|---|---|---|
srcs |
array | `` | Array of fallback video URLs. |
muted |
string | `` | "muted" or "" |
- Support few other attributes.