-
Notifications
You must be signed in to change notification settings - Fork 35
/
styles.css
130 lines (115 loc) · 2.33 KB
/
styles.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
:root {
height: 100%;
}
body {
background: black url('./assets/stars_1080.jpg') no-repeat top center fixed;
background-size: cover;
font-family: 'Pathway Gothic One', sans-serif;
font-weight: 600;
height: 100%;
margin: 0;
}
@media (min-width: 768px) {
body {
background-image: url('./assets/stars_2729.jpg');
}
}
@media (min-width: 1080px) {
body {
background-image: url('./assets/stars_3840.jpg');
}
}
#scene {
position: relative;
height: 100%;
perspective: 500px;
perspective-origin: 50% 40%;
overflow: hidden;
z-index: 1;
text-align: center;
}
#inputContainer {
text-align: center;
position: absolute;
top: 40%;
width: 100%;
transition-duration: 3s;
transition-timing-function: linear;
z-index: 3;
}
#inputContainer.zoomed {
transform: translateZ(700px);
}
#inputContainer input {
font-size: 2em;
color: #a0d8fa;
width: 40%;
min-width: 300px;
border-radius: 10px;
padding: 8px;
border-width: 1px;
background-color: rgba(255, 255, 255, 0.3);
box-shadow: inset 0 0 4px 3px #ddd;
opacity: 0.9;
max-width: 600px;
}
::-webkit-input-placeholder {
color: #a0d8fa;
}
#inputContainer input:focus {
outline: none;
}
#crawlContainer {
mask-image: linear-gradient(to bottom, transparent 20%, black 100%);
-webkit-mask-image: linear-gradient(to bottom, transparent 20%, black 100%);
z-index: 2;
position: absolute;
width: 100%;
height: calc(100vw * 2);
bottom: 0;
text-align: center;
transform: rotateX(60deg);
transform-origin: bottom;
overflow: auto;
scrollbar-width: none;
}
#crawlContainer::-webkit-scrollbar {
display: none;
}
@media (orientation: portrait) {
#crawlContainer {
mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
-webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
}
}
.block {
margin-bottom: 60px;
font-size: 300%;
color: #fcdf2b;
word-wrap: break-word;
}
.content {
position: absolute;
width: 100%;
font-size: 36px;
margin: 0 auto;
top: 15%;
color: #fcdf2b;
opacity: 0;
animation: crawling 25s linear;
}
.paused {
animation-play-state: paused;
}
#play {
height: 20%;
top: 31%;
transition-duration: 3s;
transition-timing-function: linear;
position: relative;
z-index: 3;
cursor: pointer;
}
#play.zoomed {
transform: translateZ(700px) rotate(0.5turn);
}