forked from vihanpereraux/Xyren-RealTime-Animation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
111 lines (100 loc) · 3.46 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
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html lang="en">
<head>
<title>Material Animation</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
<meta itemprop="name" content="Material Animation">
<meta itemprop="description" content="made with cables">
<meta itemprop="image" content="screenshot.png">
<!-- <meta name="description" content="made with cables" /> -->
<!-- bootstrap v5.2 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<!-- adobe fonts package -->
<link rel="stylesheet" href="https://use.typekit.net/wcs6mhl.css">
<!-- custom styles -->
<style>
body {
margin: 0;
background-color: #000;
color: #fff;
font-family: Helvetica, Arial, sans-serif;
overflow: hidden;
}
canvas {
display: block;
position: absolute;
outline:0;
}
* {
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.sidebar-cables{
z-index: 0 !important;
}
div{
z-index: 0 !important;
}
#top-text{
position: absolute !important;
font-family: roc-grotesk-wide, sans-serif;
font-weight: 500;
font-style: normal;
top: 30px;
z-index: 6 !important;
padding-left: 20px !important;
}
#interactive-text{
position: absolute !important;
z-index: 6 !important;
font-family: roc-grotesk-wide, sans-serif;
font-weight: 500;
font-style: normal;
transform: translateY(-50%, -50%);
top: 45%;
right: 40px;
}
#bottom-text{
position: absolute !important;
z-index: 6 !important;
font-family: roc-grotesk-wide, sans-serif;
font-weight: 500;
font-style: normal;
bottom: 15px;
font-size: 20px;
padding-left: 25px !important;
line-height: 1.7 !important;
}
#instruction-text{
position: absolute !important;
z-index: 6 !important;
font-family: roc-grotesk-wide, sans-serif;
font-weight: 500;
font-style: normal;
transform: translateY(-50%, -50%);
top: 45%;
padding-left: 25px !important;
line-height: 1.8;
}
</style>
</head>
<body>
<!-- webgl animation - output -->
<canvas id="glcanvas" width="100vw" height="100vh" tabindex="1"></canvas>
<!-- title -->
<div class="container-fluid titles">
<h2 id="top-text">Hirawela by <span style="font-size: 25px; margin-left: 10px; margin-right: 10px;">✹</span> Xyren</h2>
<h4 id="interactive-text">Play Again (P)</h4>
<p id="instruction-text">click the dropdown 🡥 <br> play with your own values <br> this 3D mesh is rotatable٭</p>
<h3 id="bottom-text">Real-Time Visualizer by <br> Vihan Perera</h3>
</div>
<!-- calling relevant params -->
<script type="text/javascript" src="js/patch.js" async></script>
<script src="js/script.js"></script>
</body>
</html>