【文件属性】:
文件名称:videobg.js:使用视频作为网页背景
文件大小:8.78MB
文件格式:ZIP
更新时间:2021-07-02 11:47:18
JavaScript
videobg.js
由于使用视频作为网站背景将成为趋势,我尝试编写一个javascript文件来解决这个问题。
如何使用?
首先,您应该包含文件
[removed][removed]
然后你可以根据需要设置配置
window.$vb.init({
folder: "video", //the folder of the videos, default: "";
video_name: "iPhone 5s ad", //the name of the video;
muted: true //Set this true if you want the video to be muted, default: false;
【文件预览】:
videobg.js-master
----css()
--------style.css(561B)
----README.md(946B)
----video()
--------iPhone 5s ad.ogg(4.43MB)
--------iPhone 5s ad.mp4(4.49MB)
----js()
--------videoBg.js(2KB)
----index.html(460B)