-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
172 lines (163 loc) · 3.92 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!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>Geometric Photo Gallery</title>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<style>
body {
margin: 0;
background-color: black;
height: 1000000px;
overflow-y: scroll;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE 10+ */
}
::-webkit-scrollbar { /* WebKit */
width: 0;
height: 0;
}
canvas {
display: block;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: -1;
}
h1 {
display: block;
position: fixed;
color: white;
top: 2rem;
left: 2rem;
font-family: 'Roboto', sans-serif;
font-size: 3rem;
}
#scrollEncouragement {
opacity: 0.4;
}
.scrollText {
display: block;
position: fixed;
bottom: 2rem;
color: white;
font-family: 'Roboto', sans-serif;
font-size: 1rem;
text-align: center;
width: 100%;
}
.arrow {
display: block;
position: fixed;
bottom: 0.75rem;
color: white;
text-align: center;
width: 100%;
font-size: 20px;
}
button {
position: absolute;
color: white;
right: 5%;
bottom: 5%;
font-family: 'Roboto', sans-serif;
background-color: darkgray;
width: 90px;
height: 40px;
font-size: 1rem;
}
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100vw; /* Full width */
height: 100vh; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}
/* Modal Content (image) */
.modal-content {
margin: auto;
display: block;
width: 80%;
max-width: 700px;
}
/* Caption of Modal Image */
#caption {
margin: auto;
display: block;
width: 80%;
max-width: 700px;
text-align: center;
color: white;
padding: 10px 0;
height: 150px;
font-family: 'Roboto', sans-serif;
font-size: 1rem;
}
/* Add Animation */
.modal-content, #caption {
-webkit-animation-name: zoom;
-webkit-animation-duration: 0.6s;
animation-name: zoom;
animation-duration: 0.6s;
}
@-webkit-keyframes zoom {
from {-webkit-transform:scale(0)}
to {-webkit-transform:scale(1)}
}
@keyframes zoom {
from {transform:scale(0)}
to {transform:scale(1)}
}
/* The Close Button */
.close {
position: absolute;
top: 15px;
right: 35px;
color: #f1f1f1;
font-size: 40px;
font-weight: bold;
transition: 0.3s;
}
.close:hover,
.close:focus {
color: #bbb;
text-decoration: none;
cursor: pointer;
}
/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
.modal-content {
width: 100%;
}
}
</style>
</head>
<body>
<h1>Noah Trueblood</h1>
<div id="myModal" class="modal">
<span class="close">×</span>
<img class="modal-content" id="img01">
<div id="caption"></div>
</div>
<div id="scrollEncouragement">
<h2 class="scrollText">Scroll down to explore</h2>
<span class="arrow">⇣</span>
</div>
<script src="scrolling.js"></script>
<script src="js/three.js"></script>
<script src="inverseKinematics.js"></script>
<script src="threejsIK.js"></script>
<script src="portfolioSite.js"></script>
</body>
</html>