aboutsummaryrefslogtreecommitdiffhomepage
path: root/letitsnow/snow.html
blob: 0bb981f1c9b43fecf43dca59616dd7481b331358 (plain)
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
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf8">
        <title>Let It Snow demo</title>
        <script src="snow.js"></script>
<style>
body,
html{
    margin: 0;
    padding: 0;
    background-color: #000;
    min-height: 100vh;
    min-width: 100%;
}

*{
    box-sizing: border-box;
}

#snow{
    width: 100%;
    height: 100%;
}
</style>
    <script>
        window.addEventListener("load", function(){
            letItSnow({
                'max_particles': 200,
                'base_speed': 200,
                'max_xspeed': 300,
                'max_tradius': 20,
                'max_tduration': 5000,
                'interactive': true,
            });
        });
    </script>
    </head>
    <body>
        <div class="canvas-container">
            <canvas id="snow"></canvas>
        </div>
    </body>
</html>