-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
103 lines (95 loc) · 3.08 KB
/
index.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Snow.js Demo</title>
<link rel="stylesheet" href="css/demo.css">
</head>
<body>
<div class="container">
<header>
<h1 class="large">Snow.js</h1>
<h2>For all your holiday zazz</h2>
</header>
<div class="main">
<section>
<header>
<h1>
Get It
</h1>
</header>
<p>
Snow.js is hosted on <a href="https://github.com/devinhunt/Snow.js">github</a>. Grab the script <a href="https://raw.github.com/devinhunt/Snow.js/master/js/snow.js">here</a>.
</p>
</section>
<section>
<header>
<h1>
How to use it
</h1>
</header>
<p>
Just add the script at the bottom of your site, create a snow object, and start it! No jQuery or any other library needed.
</p>
<pre>
<script src="js/snow.js"></script>
<script>
// Let it snow, let it snow, let it snow!
window.snow = new Snow();
window.snow.start();
</script>
</pre>
</section>
<section>
<header>
<h1>
To Do
</h1>
</header>
<p>
Since this was made quite quickly (just a sketch) it currently only works in webkit-based browsers (Chrome, Safari). Some things I'd like accomplish:
</p>
<ul>
<li>
Firefox compatibility
</li>
<li>
Opera compatibility
</li>
<li>
IE6-10 compatibility
</li>
<li>
Customizable snow behavior
</li>
<li>
Reactive snow
</li>
<li>
Use CSS3 transform for performace enhancements
</li>
<li>
Genereal performance enhancements (it murders cpu's at the moment)
</li>
<li>
Canvas based rendering option
</li>
</ul>
</div>
<footer>
<p>
Snow.js was made by <a href="http://www.twitter.com/hailpixel">@hailpixel</a> while recovering from christmas dinner.
</p>
</footer>
</div>
<!-- Scripts -->
<script src="js/snow.js"></script>
<!-- end scripts-->
<script>
// Let it snow, let it snow, let it snow!
window.snow = new Snow();
window.snow.start();
</script>
</body>
</html>