mirror of https://github.com/lxndrblz/anatole.git

Alexander Bilz
13.47.2024 f44e983f148454ddfbe592aa0f0d35d6c4fc219e
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
:root {
  --sk-size: 40px;
  --sk-color: #333;
}
 
body.theme--dark {
  --sk-color: rgb(169, 169, 179);
}
 
.sk-wrapper {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}
 
.sk-fold {
  width: var(--sk-size);
  height: var(--sk-size);
  position: relative;
  transform: rotateZ(45deg);
}
 
.sk-fold-cube {
  float: left;
  width: 50%;
  height: 50%;
  position: relative;
  transform: scale(1.1);
}
 
.sk-fold-cube:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--sk-color);
  animation: sk-fold 2.4s infinite linear both;
  transform-origin: 100% 100%;
}
 
.sk-fold-cube:nth-child(2) {
  transform: scale(1.1) rotateZ(90deg);
}
 
.sk-fold-cube:nth-child(4) {
  transform: scale(1.1) rotateZ(180deg);
}
 
.sk-fold-cube:nth-child(3) {
  transform: scale(1.1) rotateZ(270deg);
}
 
.sk-fold-cube:nth-child(2):before {
  animation-delay: 0.3s;
}
 
.sk-fold-cube:nth-child(4):before {
  animation-delay: 0.6s;
}
 
.sk-fold-cube:nth-child(3):before {
  animation-delay: 0.9s;
}
 
@keyframes sk-fold {
  0%,
  10% {
    transform: perspective(140px) rotateX(-180deg);
    opacity: 0;
  }
 
  25%,
  75% {
    transform: perspective(140px) rotateX(0);
    opacity: 1;
  }
 
  90%,
  100% {
    transform: perspective(140px) rotateY(180deg);
    opacity: 0;
  }
}