-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
88 lines (85 loc) · 1.6 KB
/
style.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
* {
margin: 0;
padding: 0;
font-family: sans-serif;
box-sizing: border-box;
}
.wrapper {
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
perspective: 1000px;
position: relative;
}
.outer-circle {
height: 12vmin;
width: 12vmin;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: flex-start;
padding: 10px;
gap: 10%;
transform-style: preserve-3d;
background-color: #ffc962;
box-shadow: 0 0px 5px;
animation: translate 1s ease-in infinite alternate;
}
.inner-circle {
border: 2px solid black;
height: 2vmin;
width: 2vmin;
border-radius: 50%;
transform: translateY(10px);
background-color: #000;
animation: translate2 4s ease-in infinite alternate;
}
.shadow {
height: 4vmin;
width: 8vmin;
border-radius: 50%;
position: absolute;
background-color: #00000070;
animation: scale 1s ease-in infinite alternate;
}
@keyframes scale {
to {
transform: rotateX(65deg) translateY(165px) scale(0.3);
}
from {
transform: rotateX(65deg) translateY(165px) scale(1);
}
}
@keyframes translate {
from {
transform: translateY(-40px) rotate(0);
}
95% {
transform: translateY(39px) rotate(0deg);
}
to {
transform: translateY(40px) rotateX(35deg);
}
}
@keyframes translate2 {
from {
transform: translate(0, 10px);
}
25% {
transform: translate(10px, 20px);
}
50% {
transform: translate(0, 10px);
}
60% {
transform: translate(0, 10px) scale(1.3, 0.5);
}
75% {
transform: translate(-10px, 20px);
}
to {
transform: translate(0, 10px);
}
}