-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
147 lines (136 loc) · 3.72 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
<html>
<head>
<link rel="icon" href="http://picturelements.github.io/pitchforkemporium/PEicon.png">
<link href='https://fonts.googleapis.com/css?family=Kaushan+Script' rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/css?family=Roboto:300" rel="stylesheet" type="text/css">
<style>
body{
background-color:#c1272d;
margin:0;
pointer-events:none;
}
#name{
display:block;
position:fixed;
font-family:Kaushan Script,Arial,sans-serif;
font-weight:bold;
font-size:7.5vw;
width:100%;
height:10vw;
top:-10%;
margin-top:-12vw;
text-align:center;
pointer-events:auto;
z-index:10;
}
#name a{
color: white !important;
text-decoration: none !important;
text-shadow: 5px 5px 0 #961F1F;
transition: 300ms;
z-index:10;
}
#name a:hover{
text-shadow: 10px 10px 10px #961F1F;
transition:300ms;
}
#line{
position:fixed;
display:block;
width:0%;
left:50%;
height:2px;
top:50%;
margin-top:-1px;
background-color:white;
z-index:10;
}
#blocker{
display:block;
position:fixed;
width:100%;
height:50%;
top:0;
background-color:#c1272d;
z-index:0;
}
.options{
display:block;
position:relative;
font-family:Roboto,Arial,sans-serif;
color:white;
font-size:3vw;
top:30%;
text-align:center;
float:left;
z-index:-2;
}
.options a{
color:white;
text-decoration:none;
pointer-events:auto;
margin-left:1vw;
margin-right:1vw;
z-index:-1;
}
.options a:hover{
color:#bbb;
}
#optionContainer{
position:fixed;
display:block;
top:0;
left:30%;
min-width:10px;
height:100%;
z-index:-1;
}
@keyframes drop{
80%{top:60%;}
100%{top:50%;}
}
@keyframes expand{
80%{width:74%; left:13%;}
100%{width:70%; left:15%;}
}
@keyframes dropdown{
to{top:54%;}
}
</style>
<script>
function setAlign(){
console.log(document.getElementById("optionContainer").style.width);
console.log(document.getElementById("optionContainer").width);
}
function setAni(){
console.log("GOT HERE!");
document.getElementById("name").style.animation="drop 1s forwards 0.5s 1"
document.getElementById("line").style.animation="expand 1s forwards 1.5s 1"
var stuff=document.getElementsByClassName("options");
for (i=0;i<stuff.length;i++){
stuff[i].style.animation="dropdown 1s forwards "+(1.7+0.15*i)+"s 1";
}
}
</script>
</head>
<body onload=setAni()>
<div id="name"><a href="http://pitchforkemporium.github.io/products">Pitchfork Emporium</a></div>
<div id="line"></div>
<div id="blocker"></div>
<div id="optionContainer">
<div class="options">
<a href="http://pitchforkemporium.github.io/login">log in</a>
</div>
<!--<div class="options" style="opacity:0.4">|</div>-->
<div class="options">
<a href="http://pitchforkemporium.github.io/products">products</a>
</div>
<div class="options">
<a href="http://pitchforkemporium.github.io/diy">DIY</a>
</div>
<div class="options">
<a href="http://pitchforkemporium.github.io/about">about</a>
</div>
</div>
</body>
</html>