-
Notifications
You must be signed in to change notification settings - Fork 0
/
digital-rain.js.html
45 lines (41 loc) · 1.34 KB
/
digital-rain.js.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#000000">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>digital-rain.js</title>
<style>
* { box-sizing: border-box; }
html, body { height: 100%; width: 100%; margin:0; padding:0; background-color:black}
</style>
</head>
<body>
<style>
#digital-rain {
display: block;
width:100%;
height:100%;
transition: 1s; /* for canvas transparancy after duration */
z-index:-999; /* position canvas behind other elements */
}
</style>
<canvas id="digital-rain"></canvas>
<script src="static/digital-rain.js"></script>
<script>
// Call the function to start the Digital Rain animation. Customize it with options.
startDigitalRain({
// canvasID: 'digital-rain',
// dropColor: "#b0fcde",
// trailColor: '#00a060',
// backgroundColor: 'rgb(0, 0, 0)',
// trailLength: '7',
// fontSize: 14,
// speedCoeff: 25,
// duration: 0,
});
</script>
</body>
</html>