-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustom.css
58 lines (58 loc) · 1.24 KB
/
Custom.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
display: flex;
min-height: 100vh;
justify-content: center;
align-items: center;
background: radial-gradient(#c3911d,#523322);
}
.container{
width: 350px;
height: 400px;
display: flex;
justify-content: center;
align-items: center;
transform-style: preserve-3d;
transform: perspective(500px) rotateY(135deg);
}
.container span {
position: absolute;
width: 100%;
height: 100%;
border-radius: 20%;
border: 10px solid rgb(48, 112, 27);
animation: move 8s ease-in-out infinite;
box-shadow: 2px 4px 20px rgb(4, 5, 0) inset;
animation-delay: calc(-1s * var(--i));
}
@keyframes move{
0%{
transform: translateZ(-100px);
width: 100%;
height: 100%;
}
25%{
transform: translateZ(100px);
width: 100%;
height: 100%;
}
50%{
transform: translateZ(100px);
width: 15%;
height: 15%;
}
75%{
transform: translateZ(-100px);
width: 15%;
height: 15%;
}
100%{
transform: translateZ(-100px);
width: 100%;
height: 100%;
}
}