vue-videobg

前端 多媒体
Vue.js 背景视频组件
2018-07-06 我要评论 2 我要收藏

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.

vue-videobg 相关推荐
对于该库,你有要推荐的内容么?点此提交推荐
请文明评论,与人为善,比聪明更重要!
评论