• Stars
    star
    252
  • Rank 161,312 (Top 4 %)
  • Language Vue
  • License
    MIT License
  • Created over 8 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🌌 Video Background component for Vue.js

Video Background

Install via NPM

Available through npm as vue-videobg.

npm install --save vue-videobg

Usage

import VideoBg from 'vue-videobg'

Vue.component('video-bg', VideoBg)

// or
new Vue({
  el: 'body',
  components: { VideoBg }
})
<video-bg :sources="['demo/assets/video.mp4']" img="demo/assets/bg.jpg">
  <!-- If you want to add content here, a slot is waiting! -->
</video-bg>

License

VideoBackground is released under the MIT License. See the bundled LICENSE file for details.