-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
57 lines (49 loc) · 1.44 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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Codrops demo</title>
<link rel="preload" href="./assets/codropsFont.ttf" as="font" type="font/ttf" crossorigin="anonymous">
</head>
<script type="module" src="Main.js"></script>
<style>
html, body {
margin: 0; /* remove the default margin */
height: 100%; /* make the html,body fill the page */
overflow: hidden;
}
canvas {
display: block; /* make the canvas act like a block */
width: 100%; /* make the canvas fill its container */
height: 100%;
}
@font-face {
font-family: codrops;
src: url("./assets/codropsFont.ttf");
}
.logo {
font-family: codrops;
position: absolute;
top: 30px;
left: 50px;
font-size: 20px;
color: rgba(0, 0, 0, 1);
}
.letter {
letter-spacing: -4px;
transition: color 0.5s ;
}
</style>
<body>
<canvas></canvas>
<div class="logo">CODROPS
<!-- <span class="letter">C</span>
<span class="letter">O</span>
<span class="letter">D</span>
<span class="letter">R</span>
<span class="letter">O</span>
<span class="letter">P</span>
<span class="letter">S</span> -->
</div>
</body>
</html>