js点击放烟花烟花绽放动画效果代码

代码语言:html

所属分类:粒子

代码描述:js点击放烟花烟花绽放动画效果代码

代码标签: 烟花 烟花 绽放 动画 效果

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

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <style type="text/css">



        html,body {
            height: 100%;
            margin: 0;
            padding: 0
        }



        ul,li {
            text-indent: 0;
            text-decoration: none;
            margin: 0;
            padding: 0
        }



        img {
            border: 0
        }



        body {
            background-color: #000;
            color: #999;
            font: 100%/18px helvetica, arial, sans-serif
        }



        canvas {
            cursor: crosshair;
            display: block;
            left: 0;
            position: absolute;
            top: 0;
            z-index: 20
        }



        #header img {
            width: 100%;
            height: 20%;
        }



        #bg img {
            width: 100%;
            height: 80%;
        }



        #header,#bg {
            position: fixed;
            left: 0;
            right: 0;
            z-index: 10
        }



        #header {
            top: 0
        }



        #bg {
            position: fixed;
            z-index: 1;
        }



        audio {
            position: fixed;
            display: none;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            z-index: 5
        }

.........完整代码请登录后点击上方下载按钮下载查看

网友评论0