-
Notifications
You must be signed in to change notification settings - Fork 0
/
loader.css
145 lines (142 loc) · 2.5 KB
/
loader.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
/* styles.css */
.cat {
position: relative;
width: 100%;
max-width: 20em;
overflow: hidden;
background-color: #e6dcdc;
}
.cat::before {
content: '';
display: block;
padding-bottom: 100%;
}
.cat:active > * {
animation-play-state: running;
}
.cat__head,
.cat__tail,
.cat__body {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
animation: rotating 2.79s cubic-bezier(0.65, 0.54, 0.12, 0.93) infinite;
}
.cat__head::before,
.cat__tail::before,
.cat__body::before {
content: '';
position: absolute;
width: 50%;
height: 50%;
background-size: 200%;
background-repeat: no-repeat;
background-image: url('https://images.weserv.nl/?url=i.imgur.com/M1raXX3.png&il');
}
.cat__head::before {
top: 0;
right: 0;
background-position: 100% 0%;
transform-origin: 0% 100%;
transform: rotate(90deg);
}
.cat__tail {
animation-delay: 0.2s;
}
.cat__tail::before {
left: 0;
bottom: 0;
background-position: 0% 100%;
transform-origin: 100% 0%;
transform: rotate(-30deg);
}
.cat__body {
animation-delay: 0.1s;
}
.cat__body:nth-of-type(2) {
animation-delay: 0.2s;
}
.cat__body::before {
right: 0;
bottom: 0;
background-position: 100% 100%;
transform-origin: 0% 0%;
}
@keyframes rotating {
from {
transform: rotate(720deg);
}
to {
transform: none;
}
}
.box {
display: flex;
flex: 1;
flex-direction: column;
justify-content: flex-start;
justify-content: center;
align-items: center;
background-color: #e6dcdc;
}
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
height: 100%;
}
body {
display: flex;
flex-direction: column;
min-height: 100%;
margin: 0;
line-height: 1.4;
}
.intro {
width: 90%;
max-width: 36rem;
padding-bottom: 1rem;
margin: 0 auto 1em;
padding-top: 0.5em;
font-size: calc(1rem + 2vmin);
text-transform: capitalize;
border-bottom: 1px dashed rgba(0, 0, 0, 0.3);
text-align: center;
}
.intro small {
display: block;
opacity: 0.5;
font-style: italic;
text-transform: none;
}
.info {
margin: 0;
padding: 1em;
font-size: 0.9em;
font-style: italic;
font-family: serif;
text-align: right;
opacity: 0.5;
}
.info a {
color: inherit;
}
/* Add these styles to your existing CSS */
#loader-wrapper {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #e6dcdc; /* Set background color as per your preference */
display: flex;
align-items: center;
justify-content: center;
z-index: 9999; /* Make sure it's above other elements */
}