-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbee.css
More file actions
118 lines (117 loc) · 2.34 KB
/
bee.css
File metadata and controls
118 lines (117 loc) · 2.34 KB
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
@keyframes body-bounce {
from {
top: 3px;
}
to {
top: 4.8px;
}
}
@keyframes top-bend {
from {
transform: rotate(0deg);
top: 3.2px;
}
to {
transform: rotate(20deg);
top: 4.8px;
}
}
@keyframes bottom-bend {
from {
transform: rotate(0deg);
}
to {
transform: rotate(-20deg);
}
}
html, body {
background-color: rgba(128, 66, 243, 0.507);
height: 100%;
width: 100%;
margin: 0;
}
#bee-container {
top: 50%;
left: 50%;
transform: translate3d(-50%, -50%, 0);
position: absolute;
}
#bee {
position: relative;
}
#bee #body {
height: 48px;
width: 5.4rem;
background-color: gold;
background-image: linear-gradient(to right, transparent 34%, black 34%, black 49%, transparent 49%, transparent 61%, black 61%, black 76%, transparent 76%);
border-radius: 72px;
position: relative;
animation: body-bounce 0.4s 0s alternate infinite;
}
#bee #body:before, #bee #body:after {
content: '';
display: block;
position: absolute;
top: -28.23536px;
width: 43.63632px;
height: 43.63632px;
background-color: rgba(255, 255, 255, 0.5);
border-top-left-radius: 48px;
border-top-right-radius: 48px;
border-bottom-right-radius: 48px;
border: 2px solid rgba(0, 0, 0, 0.5);
}
#bee #body:before {
left: 40%;
transform: rotate(-15deg);
}
#bee #body:after {
border-color: rgba(0, 0, 0, 0.3);
z-index: -1;
left: 20%;
}
#bee #body #face:before, #bee #body #face:after {
content: '';
display: block;
position: absolute;
height: 0.6rem;
width: 0.375rem;
background-color: black;
border-radius: 50%;
top: 1rem;
}
#bee #body #face:before {
left: 6%;
}
#bee #body #face:after {
left: 20%;
}
.leg {
position: absolute;
top: 100%;
}
.leg:before, .leg:after {
content: '';
display: block;
position: absolute;
width: 4.8px;
height: 19.2px;
background-color: black;
border-radius: 48px;
}
.leg:before {
top: 0;
transform-origin: top;
animation: top-bend 0.4s 0s alternate infinite;
}
.leg:after {
top: 19.2px;
transform-origin: bottom;
animation: bottom-bend 0.4s 0s alternate infinite;
}
.leg#left {
left: 52%;
}
.leg#right {
left: 66%;
}