forked from v2018z/studyxixi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
splash.html
174 lines (158 loc) · 3.62 KB
/
splash.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
173
174
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
<!-- https://electronjs.org/docs/tutorial/security#csp-meta-tag -->
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
<style>
body {
display: flex;
min-height: 100vh;
flex-direction: column;
}
main {
flex: 1 0 auto;
}
h1.title,
.footer-copyright a {
font-family: 'Architects Daughter', cursive;
text-transform: uppercase;
font-weight: 900;
}
/* start welcome animation */
body.welcome {
background: #512da8;
overflow: hidden;
-webkit-font-smoothing: antialiased;
}
.welcome .splash {
height: 0px;
padding: 0px;
border: 130em solid #039be5;
position: fixed;
left: 50%;
top: 100%;
display: block;
box-sizing: initial;
overflow: hidden;
border-radius: 50%;
transform: translate(-50%, -50%);
animation: puff 0.5s 1.8s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards, borderRadius 0.2s 2.3s linear forwards;
}
.welcome #welcome {
background: #311b92 ;
width: 56px;
height: 56px;
position: absolute;
left: 50%;
top: 50%;
overflow: hidden;
opacity: 0;
transform: translate(-50%, -50%);
border-radius: 50%;
animation: init 0.5s 0.2s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards, moveDown 1s 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards, moveUp 1s 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, materia 0.5s 2.7s cubic-bezier(0.86, 0, 0.07, 1) forwards, hide 2s 2.9s ease forwards;
}
/* moveIn */
.welcome header,
.welcome a.btn {
opacity: 0;
animation: moveIn 2s 3.1s ease forwards;
}
@keyframes init {
0% {
width: 0px;
height: 0px;
}
100% {
width: 56px;
height: 56px;
margin-top: 0px;
opacity: 1;
}
}
@keyframes puff {
0% {
top: 100%;
height: 0px;
padding: 0px;
}
100% {
top: 50%;
height: 100%;
padding: 0px 100%;
}
}
@keyframes borderRadius {
0% {
border-radius: 50%;
}
100% {
border-radius: 0px;
}
}
@keyframes moveDown {
0% {
top: 50%;
}
50% {
top: 40%;
}
100% {
top: 100%;
}
}
@keyframes moveUp {
0% {
background: #311b92;
top: 100%;
}
50% {
top: 40%;
}
100% {
top: 50%;
background: #039be5;
}
}
@keyframes materia {
0% {
background: #039be5;
}
50% {
background: #039be5;
top: 26px;
}
100% {
background: #311b92;
width: 100%;
height: 64px;
border-radius: 0px;
top: 26px;
}
}
@keyframes moveIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes hide {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
</style>
</head>
<body>
<body class="welcome">
<span id="splash-overlay" class="splash"></span>
<span id="welcome" class="z-depth-4"></span>
</body>
</body>
</html>