waterpipe.js烟雾弥漫的背景生成器

waterpipe.js烟雾弥漫的背景生成器994
waterpipe.js是一个创建烟雾弥漫的背景,有多种效果可选择,自定义参数效果还是挺酷的哦!使用方法1.引用js文件
<script src="lib/jquery-1.11.0.min.js"></script><script src="waterpipe.js"></script>
2.创建画布元素内包装
<div id="wavybg-wrapper" style="width: 100%; height: 100%;">     <canvas>Your browser does not support HTML5 canvas.</canvas></div>
var smokyBG = $('#wavybg-wrapper').waterpipe({    //Default values    gradientStart: '#000000',    gradientEnd: '#222222',    smokeOpacity: 0.1,    numCircles: 1,    maxMaxRad: 'auto',    minMaxRad: 'auto',    minRadFactor: 0,    iterations: 8,    drawsPerFrame: 10,    lineWidth: 2,    speed: 1,    bgColorInner: "#ffffff",    bgColorOuter: "#666666"});

也许你还喜欢