-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (61 loc) · 1.81 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Amazing three.js gradient background</title>
<link rel="icon" href="img/icon.jpg" type="icon/x-icon">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Syne:wght@400;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style/normalize.css">
<link rel="stylesheet" href="style/style.css">
</head>
<body>
<!-- div .wrapp -->
<div class="wrapp">
<div class="header">
<div class="header__bl">
<div class="header__txt">
<h1 class="title">
Amazing three.js<br>
<span class="color">gradient</span>
</h1>
</div>
<div id="background"></div>
</div>
<div class="header__footer">
<div class="header__footer-wrapp">
<div class="header__footer-txt">
<div class="header__footer-img"><img src="img/star.svg" alt=""></div>full code<br> in
description
</div>
<div class="header__footer-txt"><span class="color">a</span>v</div>
</div>
</div>
</div>
</div>
<!-- /div .wrapp END -->
<!-- script -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r121/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.fog.min.js"></script>
<script>
VANTA.FOG({
el: "#background",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
highlightColor: 0x0a0a0a,
midtoneColor: 0x8aff00,
lowlightColor: 0x0a0a0a,
baseColor: 0x0a0a0a,
blurFactor: 0.90,
speed: 2.00,
zoom: 0.60
})
</script>
</body>
</html>