-
Notifications
You must be signed in to change notification settings - Fork 0
/
ywwtf.css
211 lines (171 loc) · 3.34 KB
/
ywwtf.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
/*
PushIn.js
=========
CSS document for working sample.
PushIn.js is a plugin which can be attached to any
div element to simulate a dolly-in or push-in effect.
*/
/* CONSOLE FOR DEBUGING */
header {
position: fixed;
top: 0;
height: 40px;
width: 100%;
text-align: center;
padding-top: 5px;
z-index: 9999;
background: white;
}
/* LAYOUT */
html {
height: 100%;
}
body {
height: 8000px;
}
* {
box-sizing: border-box;
margin: 0;
}
#wrapper {
position: fixed;
top: 0px;
bottom: 0px;
display: block;
width: 100%;
overflow: auto;
}
#scroller, .layer {
display: block;
width: 100%;
}
#scroller {
position: absolute;
height: 100%;
background: linear-gradient(90deg, #FFF200, #DA36E2);
background-size: 400%;
animation: BackgroundAnimation 12s ease infinite;
}
.layer {
position: fixed;
text-align: center;
height: 100vh;
opacity: 1.0;
}
/* LAYER 1 STYLING */
.dot {
position: relative;
display: inline-block;
vertical-align: middle;
width: 20%; /* Effects height and width together */
margin: -20% 5%;
top: 50%;
border-radius: 50%;
}
/*
Pseudo-class keeps aspect ratio when resizing
http://www.mademyday.de/css-height-equals-width-with-pure-css.html
*/
.dot:before {
content: '';
display: inline-block;
padding-top: 100%; /* 1:1 aspect ratio */
}
.content {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
padding-top: 50%;
}
.layer h4 {
width: 50%;
margin: 0 auto;
font-size: 5vw;
}
@media (min-width: 767px) {
.layer h4 {
font-size: 28.4px;
width: 66%;
}
}
/* FUNCTIONAL */
.layer {
transition: opacity 1000ms ease;
display: flex;
align-items: center;
height: 100vh;
}
.hide {
width: 0px !important;
height: 0px !important;
color: transparent !important;
opacity: 0 !important;
}
/* COLORS */
.blue,
.green,
.purple {
animation: ColorPulse 1s linear infinite;
}
.blue {
background: linear-gradient(90deg, #007eff, transparent);
}
.red {
background: linear-gradient(90deg, red, transparent);
}
.green {
background: linear-gradient(90deg, green, transparent);
}
@keyframes ColorPulse {
0% {background-position: 0% 0%; }
50% {background-position: 100% 0%; }
100% {background-position: 0% 0%; }
}
@keyframes BackgroundAnimation{
0%{background-position: 0% 50%;}
50%{background-position: 100% 50%;}
100%{background-position: 0% 50%;}
}
.screen-wipe {
height: 100vh;
width: 100vw;
background: linear-gradient(to right, rgba(255, 0, 0, 0) 0%,#f72d00 62%,#0089f9 82%,#10f700 91%,#fcef00 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
z-index: 3;
position: fixed;
transform: translateX(-100vw);
}
.screen-wipe.animate {
animation: screen-wipeAnimation 8s linear;
}
@keyframes screen-wipeAnimation {
0%{transform: translateX(-100vw);}
50%{transform: translateX(0vw);}
100%{transform: translateX(100vw);}
}
/* container was used to enclose the title and all contents on the index page of my name site.
Currently, container isn't being used as a class on any of the HTML for this site.
*/
.container {
margin: 0 auto;
text-align: center;
position: relative;
right: 18px;
padding-bottom: 60px;
}
#book-title h4{
color: #000;
font-size: 8vw;
font-weight: 900;
text-transform: uppercase;
letter-spacing: .75px;
text-align: left;
display: inline-block;
padding-left: 54px;
padding-top: 54px;
}
#book-title h4 span{
display: block;
text-align: right;
}