-
Notifications
You must be signed in to change notification settings - Fork 2
/
snow.html
36 lines (36 loc) · 1.44 KB
/
snow.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>coding的雪花效果</title>
<!---
参考自:
https://coding.net/app?hmsr=%E5%89%8D%E6%AE%B5%E4%B9%B1%E7%82%96&hmmd=%E5%9B%BE%E7%89%87%E5%B9%BF%E5%91%8A&hmpl=app&hmkw=&hmci=
--->
<script src="http://cdn.bootcss.com/jquery/1.8.1/jquery.min.js"></script>
<script src="js/snow-plugin.js"></script>
</head>
<body>
<style>
body{
background:#CCC;
}
.snow-canvas {
display: block;
width: 100%;
height: 100%;
top: 0;
left: 0;
position: fixed;
pointer-events: none;
}
</style>
<img src="imgs/wall.jpg" width="100%" height="100%"/>
<canvas class="snow-canvas" speed="1" interaction="false" size="2" count="80" opacity="0.00001" start-color="rgba(253,252,251,1)" end-color="rgba(251,252,253,0.3)" wind-power="0" image="false" width="1366" height="667"></canvas>
<canvas class="snow-canvas" speed="3" interaction="true" size="6" count="30" start-color="rgba(253,252,251,1)" end-color="rgba(251,252,253,0.3)" opacity="0.00001" wind-power="2" image="false" width="1366" height="667"></canvas>
<canvas class="snow-canvas" speed="3" interaction="true" size="12" count="20" wind-power="-5" image="imgs/snow.png" width="1366" height="667"></canvas>
<script>
$(".snow-canvas").snow();
</script>
</body>
</html>