bigvideo+backstretch实现随机网页背景视频播放效果代码

代码语言:html

所属分类:背景

代码描述:bigvideo+backstretch实现随机网页背景视频播放效果代码

代码标签: bigvideo backstretch 随机 网页 背景 视频 播放

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/modernizr.2.8.3.js"></script>


    <style>
        * { -moz-box-sizing:border-box; -webkit-box-sizing:border-box; box-sizing:border-box; *behavior:url(boxsizing.htc); }
        html, body { 
        	margin:0;
        	padding:0;background:#000;
        	line-height:1;
        	font-family:Arial, "Helvetica Neue", Helvetica, sans-serif;
        }
        h1, h2, .nav-link, .playlist-btn {
        	font-family:'Source Sans Pro', sans-serif; font-weight:900; 
        	text-transform:uppercase;
        }
        h1 {font-size:48px; }
        h1, h2, h3, p { margin:0 0 10px; color:#fff; text-shadow: 1px 1px 1px #000;}
        p { line-height:1.4;  }
        a { color:#fff; font-style:italic; }
        blockquote { 
        	background:#fff; 
        	margin:0 0 20px;
        	padding:5px 20px; 
        }
        pre {
        	white-space:pre-wrap;       /* css-3 */
        	white-space:-moz-pre-wrap;  /* Mozilla, since 1999 */
        	white-space:-pre-wrap;      /* Opera 4-6 */
        	white-space:-o-pre-wrap;    /* Opera 7 */
        	word-wrap:break-word;       /* Internet Explorer 5.5+ */
        }
        .box { 
        	background:#444; background:rgba(0,0,0,.6);
        	padding:20px;
        	border-radius:5px;
        	margin-bottom:20px;
        }
        .nav { 
        	position:fixed; 
        	top:50px;left:50px;
        	z-index: 999999;
        	width:150px; 
        	-webkit-transition-duration:0.6s;-moz-transition-duration:0.6s;-ms-transition-duration:0.6s;-o-transition-duration:0.6s;transition-duration:0.6s;
        }
        .credit {
        	margin:20px 0;
        }
        .download-links { margin-top:20px; }
        .download { margin-left:10px; padding:5px 10px; color:#fff; background:#111; border-radius:5px; display: inline; }
        .video-list {
        	list-style:none;
        	margin:0 0 -10px;
        	padding:0;
        	text-align:center;
        }
        .video-list li {
        	margin-bottom:10px;
        }
        .video-list .playlist-btn {
        	display:block;
        	width:100%;
        }
        .main {
        	position:relative;
        	margin:50px 50px 440px 220px;
        	min-width:300px;
        	-webkit-transition-duration:0.6s;-moz-transition-duration:0.6s;-ms-transition-duration:0.6s;-o-transition-duration:0.6s;transition-duration:0.6s;
        }
        .nav-link {
        	display:block;
        	padding-bottom:10px;
        	text-decoration:none;
        	font-style:normal;
        }
        .toggle-btn {
        	position: absolute;
        	bottom: -50px;
        	left: 5px;
        	background:rgba(0,0,0,.8);
        	padding: 6px 12px;
        	border-radius: 10px;
        	color: #fff;
        	font-size: .8em;
        	font-family:'Source Sans Pro', sans-serif; font-weight:900; 
        	text-transform: uppercase;
        }
        .playlist { 
        	padding:0; 
        	margin:20px 20px 40px;
        }
        .playlist-btn { 
        	background:#000; 
        	text-decoration:none; 
        	font-weight:bold; 
        	font-style:normal; 
        	text-transform:uppercase; 
        	font-size:14px; 
        	padding:5px 10px; 
        	margin-right:10px;
        	border-radius:5px; 
        }
        .dimmed {opacity:.7;}
        .footer-text {
        	padding:0 20px;
        	font-size:.9em;
        	font-style:italic;
        	opacity:.8;
        	text-shadow: 1px 1px 1px rgba(0,0,0,.8);
        }
        
        
        /*	BigVideo Styles 
        	You may need to adjust these styles to get this working right in your design. 
        */
        #big-video-wrap{overflow:hidden;position:fixed;height:100%;width:100%;top:0;left:0;}
        #big-video-vid,#big-video-image{position:absolute;}
        #big-video-control-container{position:fixed;bottom:20p.........完整代码请登录后点击上方下载按钮下载查看

网友评论0