-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
154 lines (134 loc) · 2.99 KB
/
style.css
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
/* The usual ... ? */
* {
box-sizing: border-box;
font-family: sans-serif;
margin: 0;
padding: 0;
}
/* Set us up to fill the screen with content */
html,
body,
main,
section {
height: 100%;
}
/* General section-ry */
section {
align-items: center;
display: flex;
flex-direction: column;
scroll-snap-align: start;
scroll-snap-stop: always;
}
/* Alternate colors to break the monotony */
section:nth-child(odd) {
background-color: #113755;
color: #fff;
}
section:nth-child(even) {
background-color: #fff;
color: #113755;
}
/* Make 'Syracuse' orange */
.location {
color: #b86500;
animation: unhighlightSyr 1s;
text-decoration: none;
}
.location:hover {
animation: highlightSyr 1s;
animation-fill-mode: forwards;
}
/* Settings pertaining to the 'greeting' section */
#greeting-container {
align-content: center;
flex: 1;
justify-content: flex-end;
}
#greeting-container > h1,
#greeting-container > h2 {
animation: fadeIn 1.5s;
animation-fill-mode: forwards;
margin: 0;
opacity: 0.01;
}
#greeting-container > h1 {
animation-delay: .25s;
font-size: 1rem;
text-transform: uppercase;
}
#greeting-container > h2 {
font-size: 1.6rem;
animation-delay: 1.5s;
}
#arrow-container {
align-items: center;
color: #fff;
display: flex;
flex-direction: column;
justify-content: flex-end;
margin-bottom: 0;
}
#arrow-container:hover {
cursor: pointer;
}
#arrow-container > p {
animation: fadeIn 1.5s;
animation-delay: 4.5s; /* Delay this fadeIn until after my name fades in */
animation-fill-mode: forwards; /* Make opacity stay at 1 when it gets there */
color: #fff;
opacity:0.01;
}
#arrow-container > span {
animation: animateArrows 3s infinite;
animation-delay: 3s;
border-bottom: 1px solid #fff;
border-right: 1px solid #fff;
display: block;
height: 15px;
opacity: 0.01; /* Start invisible */
transform: rotate(45deg);
width: 15px;
}
#arrow-container > span:nth-child(1) {
animation-delay: 3.2s;
}
#arrow-container > span:nth-child(2) {
animation-delay: 3.4s;
}
#arrow-container > span:nth-child(3) {
animation-delay: 3.6s;
}
/* Bring things to life! */
@keyframes fadeIn {
from { opacity: 0.01; }
to { opacity: 1; }
}
@keyframes highlightSyr {
from { color: #e67e00; }
to { color: #ff8c00; }
}
@keyframes unhighlightSyr {
from { color: #ff8c00; }
to { color: #e67e00; }
}
@keyframes animateArrows {
0% {
opacity: 0.01;
transform: rotate(45deg) translate(-200%, -200%);
}
50% {
opacity: 1;
}
100% {
opacity: 0;
transform: rotate(45deg) translate(-18%, -18%);
}
}
/* media queries */
@media (width < 800px) {
#greeting-container {
padding-left: 8vw;
padding-right: 8vw;
}
}