Animated Loader by codepeek
Zoom
Saved
1 line⌘Z Undo
1<!--2 Author: @codepeek3 License: MIT4 Tags: #animated #appliance #light #loader #playful5-->6<div class="wmd" role="status">7 <span class="wmd__sr">Loading…</span>8 <div class="wmd__box" aria-hidden="true">9 <span class="wmd__panel">10 <span class="wmd__knob">11 </span>12 <span class="wmd__led">13 </span>14 </span>15 <span class="wmd__door">16 <span class="wmd__glass">17 <span class="wmd__drum">18 <span class="wmd__item wmd__item--a">19 </span>20 <span class="wmd__item wmd__item--b">21 </span>22 <span class="wmd__item wmd__item--c">23 </span>24 </span>25 <span class="wmd__water">26 </span>27 </span>28 </span>29 </div>30 <span class="wmd__label" aria-hidden="true">Spin cycle</span>31</div>
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
<!--
Author: @codepeek
License: MIT
Tags: #animated #appliance #light #loader #playful
-->
<div class="wmd" role="status">
<span class="wmd__sr">Loading…</span>
<div class="wmd__box" aria-hidden="true">
<span class="wmd__panel">
<span class="wmd__knob">
</span>
<span class="wmd__led">
</span>
</span>
<span class="wmd__door">
<span class="wmd__glass">
<span class="wmd__drum">
<span class="wmd__item wmd__item--a">
</span>
<span class="wmd__item wmd__item--b">
</span>
<span class="wmd__item wmd__item--c">
</span>
</span>
<span class="wmd__water">
</span>
</span>
</span>
</div>
<span class="wmd__label" aria-hidden="true">Spin cycle</span>
</div>1/* * Author: @codepeek * License: MIT * Tags: #animated #appliance #light #loader #playful */2.wmd {3 position: relative;4 display: inline-flex;5 flex-direction: column;6 align-items: center;7 gap: 14px;8 font-family: ui-monospace,SFMono-Regular,Menlo,monospace9}10.wmd__sr {11 position: absolute;12 width: 1px;13 height: 1px;14 overflow: hidden;15 clip-path: inset(50%);16 white-space: nowrap17}18.wmd__box {19 display: flex;20 flex-direction: column;21 align-items: center;22 width: 144px;23 height: 168px;24 border-radius: 14px;25 background: linear-gradient(#fdfbf7,#e9e2d4);26 box-shadow: 0 0 0 1px #d8cfbd,inset 0 -6px 0 #ddd4c3,0 20px 24px -16px rgba(42,39,34,.55)27}28.wmd__panel {29 display: flex;30 align-items: center;31 justify-content: space-between;32 width: 100%;33 height: 30px;34 box-sizing: border-box;35 padding: 0 14px;36 border-bottom: 1px solid #d8cfbd37}38.wmd__panel::after {39 content: "Quick 30";40 order: 1;41 color: #8d8a84;42 font-size: 8px;43 letter-spacing: .16em;44 text-transform: uppercase45}46.wmd__knob {47 width: 16px;48 height: 16px;49 border-radius: 50%;50 background: radial-gradient(circle at 40% 35%,#fff,#c9bfae);51 box-shadow: 0 0 0 2px #2a2722,0 2px 3px rgba(0,0,0,.25)52}53.wmd__led {54 order: 2;55 width: 7px;56 height: 7px;57 border-radius: 50%;58 background: #ff6a13;59 box-shadow: 0 0 6px #ff6a13;60 animation: wmd-blink 1s steps(2,jump-none) infinite61}62.wmd__door {63 width: 108px;64 height: 108px;65 margin-top: 14px;66 padding: 7px;67 box-sizing: border-box;68 border-radius: 50%;69 background: linear-gradient(145deg,#ffffff,#a8a296 70%,#d8d2c6);70 box-shadow: 0 4px 8px rgba(42,39,34,.3)71}72.wmd__glass {73 position: relative;74 display: block;75 width: 100%;76 height: 100%;77 overflow: hidden;78 border-radius: 50%;79 background: radial-gradient(circle at 50% 40%,#3a3833,#141414);80 box-shadow: inset 0 0 0 3px #2a2722,inset 0 8px 14px rgba(0,0,0,.6)81}82.wmd__glass::after {83 content: "";84 position: absolute;85 inset: 8px;86 border-radius: 50%;87 border-top: 3px solid rgba(255,255,255,.35);88 rotate: -30deg89}90.wmd__drum {91 position: absolute;92 inset: 0;93 animation: wmd-tumble 3.2s cubic-bezier(.5,0,.5,1) infinite94}95.wmd__item {96 position: absolute;97 border-radius: 45% 55% 40% 60%;98 box-shadow: inset 0 -3px 0 rgba(0,0,0,.2)99}100.wmd__item--a {101 left: 16px;102 top: 52px;103 width: 32px;104 height: 18px;105 background: #ff6a13106}107.wmd__item--b {108 left: 44px;109 top: 58px;110 width: 28px;111 height: 20px;112 background: #e1d9c9113}114.wmd__item--c {115 left: 30px;116 top: 30px;117 width: 24px;118 height: 14px;119 background: #8d8a84120}121.wmd__water {122 position: absolute;123 left: -50%;124 top: 60%;125 width: 200%;126 height: 200%;127 border-radius: 42%;128 background: rgba(170,196,200,.32);129 animation: wmd-slosh 3s linear infinite130}131.wmd__label {132 color: #6b655c;133 font-size: 10px;134 letter-spacing: .18em;135 text-transform: uppercase136}137@keyframes wmd-tumble {138 0% {139 rotate: 0deg140 }141 45%,55% {142 rotate: 420deg143 }144 100% {145 rotate: 0deg146 }147}148@keyframes wmd-slosh {149 to {150 rotate: 360deg151 }152}153@keyframes wmd-blink {154 50% {155 opacity: .25156 }157}158@media (prefers-reduced-motion:reduce) {159 .wmd__drum,.wmd__water,.wmd__led {160 animation: none161 }162}
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
/* * Author: @codepeek * License: MIT * Tags: #animated #appliance #light #loader #playful */
.wmd {
position: relative;
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 14px;
font-family: ui-monospace,SFMono-Regular,Menlo,monospace
}
.wmd__sr {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap
}
.wmd__box {
display: flex;
flex-direction: column;
align-items: center;
width: 144px;
height: 168px;
border-radius: 14px;
background: linear-gradient(#fdfbf7,#e9e2d4);
box-shadow: 0 0 0 1px #d8cfbd,inset 0 -6px 0 #ddd4c3,0 20px 24px -16px rgba(42,39,34,.55)
}
.wmd__panel {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
height: 30px;
box-sizing: border-box;
padding: 0 14px;
border-bottom: 1px solid #d8cfbd
}
.wmd__panel::after {
content: "Quick 30";
order: 1;
color: #8d8a84;
font-size: 8px;
letter-spacing: .16em;
text-transform: uppercase
}
.wmd__knob {
width: 16px;
height: 16px;
border-radius: 50%;
background: radial-gradient(circle at 40% 35%,#fff,#c9bfae);
box-shadow: 0 0 0 2px #2a2722,0 2px 3px rgba(0,0,0,.25)
}
.wmd__led {
order: 2;
width: 7px;
height: 7px;
border-radius: 50%;
background: #ff6a13;
box-shadow: 0 0 6px #ff6a13;
animation: wmd-blink 1s steps(2,jump-none) infinite
}
.wmd__door {
width: 108px;
height: 108px;
margin-top: 14px;
padding: 7px;
box-sizing: border-box;
border-radius: 50%;
background: linear-gradient(145deg,#ffffff,#a8a296 70%,#d8d2c6);
box-shadow: 0 4px 8px rgba(42,39,34,.3)
}
.wmd__glass {
position: relative;
display: block;
width: 100%;
height: 100%;
overflow: hidden;
border-radius: 50%;
background: radial-gradient(circle at 50% 40%,#3a3833,#141414);
box-shadow: inset 0 0 0 3px #2a2722,inset 0 8px 14px rgba(0,0,0,.6)
}
.wmd__glass::after {
content: "";
position: absolute;
inset: 8px;
border-radius: 50%;
border-top: 3px solid rgba(255,255,255,.35);
rotate: -30deg
}
.wmd__drum {
position: absolute;
inset: 0;
animation: wmd-tumble 3.2s cubic-bezier(.5,0,.5,1) infinite
}
.wmd__item {
position: absolute;
border-radius: 45% 55% 40% 60%;
box-shadow: inset 0 -3px 0 rgba(0,0,0,.2)
}
.wmd__item--a {
left: 16px;
top: 52px;
width: 32px;
height: 18px;
background: #ff6a13
}
.wmd__item--b {
left: 44px;
top: 58px;
width: 28px;
height: 20px;
background: #e1d9c9
}
.wmd__item--c {
left: 30px;
top: 30px;
width: 24px;
height: 14px;
background: #8d8a84
}
.wmd__water {
position: absolute;
left: -50%;
top: 60%;
width: 200%;
height: 200%;
border-radius: 42%;
background: rgba(170,196,200,.32);
animation: wmd-slosh 3s linear infinite
}
.wmd__label {
color: #6b655c;
font-size: 10px;
letter-spacing: .18em;
text-transform: uppercase
}
@keyframes wmd-tumble {
0% {
rotate: 0deg
}
45%,55% {
rotate: 420deg
}
100% {
rotate: 0deg
}
}
@keyframes wmd-slosh {
to {
rotate: 360deg
}
}
@keyframes wmd-blink {
50% {
opacity: .25
}
}
@media (prefers-reduced-motion:reduce) {
.wmd__drum,.wmd__water,.wmd__led {
animation: none
}
}Changes made here are only a live preview and will not be saved.
Save to GitHub
GitHub opens a new file in your repository with this element filled in. Review it there and press Commit changes. Nothing is sent from codepeek and no GitHub access is needed.
◉ 2 views
Build it with AIA ready prompt with the code, the credit and how to adapt it to your project.
A cream enamel washing machine with a chrome porthole tumbles its load one way, pauses, then churns it back again while the water sloshes and the cycle light blinks.
Choose where to donate
Select a platform to continue.
Community
Comments 0
Code copied
SUPPORT THE CREATOR
Would you like to donate to the creator to help them keep creating content?
You need to sign in before you can write a comment.