-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
120 lines (108 loc) · 2.5 KB
/
index.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
@page {
margin: 1in;
}
body {
margin: 0;
padding: 0;
font-family: 'Arima Madurai', cursive;
color:white;
}
body::before{
content:'';
height:100%;
width: 100%;
position: absolute;
top: 0px;
left: 0px;
}
body.ready::before{
opacity: 0;
background: black;
background: -webkit-linear-gradient(180deg, indigo, black);
background: -moz-linear-gradient(180deg, indigo, black);
background: -o-linear-gradient(180deg, indigo, black);
background: linear-gradient(180deg, indigo, black);
transition: opacity 1s;
-webkit-transition: opacity 1s;
}
body.ready::before{
opacity: 1;
}
body.loading::before{
opacity: 1;
background: black;
background: -webkit-linear-gradient(180deg, black, indigo);
background: -moz-linear-gradient(180deg, black, indigo);
background: -o-linear-gradient(180deg, black, indigo);
background: linear-gradient(180deg, black, indigo);
transition: opacity 1s;
-webkit-transition: opacity 1s;
}
body.loading::before{
opacity: 0;
}
body.loading::after {
content:'';
position: absolute;
top: 50%;
left: 50%;
margin-top: -50px;
margin-left: -50px;
animation: 1s spin 0s infinite linear;
width: 100px;
height: 100px;
border-radius: 50%;
border-width: 1px;
border-style: solid;
border-color: white;
border-bottom: none;
border-right: none;
}
body.ready::after{
content:'';
position: absolute;
top: 50%;
left: 50%;
margin-top: -50px;
margin-left: -50px;
animation: 1s hide-spinner;
animation-fill-mode:forwards;
width: 100px;
height: 100px;
border-radius: 50%;
border-width: 1px;
border-style: solid;
border-color: white;
border-bottom: none;
border-right: none;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes hide-spinner{
100%{
margin:-1px 0 0 0;
left:0;
width:100%;
height:0px;
top:100%;
border-radius: 0px;
border:none;
}
}
.container {
height:100%;
width: 100%;
position: absolute;
top:0;
left:0;
background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 187, 0.5));
background: -moz-linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 187, 0.5));
background: -o-linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 187, 0.5));
background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 187, 0.5));
}