Animated Loader by codepeek
Zoom
Saved
1 line⌘Z Undo
1<!--2 Author: @codepeek3 License: MIT4 Tags: #animated #dark #mechanical #mono #retro5-->6<div class="oru" role="status">7 <span class="oru__sr">Loading…</span>8 <div class="oru__case" aria-hidden="true">9 <span class="oru__drum">10 <span class="oru__strip">0</span>11 </span>12 <span class="oru__drum">13 <span class="oru__strip">4</span>14 </span>15 <span class="oru__drum">16 <span class="oru__strip">7</span>17 </span>18 <span class="oru__drum">19 <span class="oru__strip oru__strip--step">0 1 2 3 4 5 6 7 8 9 0</span>20 </span>21 <span class="oru__drum oru__drum--tenth">22 <span class="oru__strip oru__strip--roll">0 1 2 3 4 5 6 7 8 9 0</span>23 </span>24 <span class="oru__unit">km</span>25 </div>26 <span class="oru__cap" aria-hidden="true">Trip meter · recalculating</span>27</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
<!--
Author: @codepeek
License: MIT
Tags: #animated #dark #mechanical #mono #retro
-->
<div class="oru" role="status">
<span class="oru__sr">Loading…</span>
<div class="oru__case" aria-hidden="true">
<span class="oru__drum">
<span class="oru__strip">0</span>
</span>
<span class="oru__drum">
<span class="oru__strip">4</span>
</span>
<span class="oru__drum">
<span class="oru__strip">7</span>
</span>
<span class="oru__drum">
<span class="oru__strip oru__strip--step">0 1 2 3 4 5 6 7 8 9 0</span>
</span>
<span class="oru__drum oru__drum--tenth">
<span class="oru__strip oru__strip--roll">0 1 2 3 4 5 6 7 8 9 0</span>
</span>
<span class="oru__unit">km</span>
</div>
<span class="oru__cap" aria-hidden="true">Trip meter · recalculating</span>
</div>1/* * Author: @codepeek * License: MIT * Tags: #animated #dark #mechanical #mono #retro */2.oru {3 --oru-h: 40px;4 position: relative;5 display: inline-flex;6 flex-direction: column;7 align-items: center;8 gap: 12px;9 width: 260px;10 font-family: ui-monospace, SFMono-Regular, Menlo, monospace;11}12.oru__sr {13 position: absolute;14 width: 1px;15 height: 1px;16 overflow: hidden;17 clip-path: inset(50%);18 white-space: nowrap;19}20.oru__case {21 display: flex;22 align-items: center;23 gap: 3px;24 padding: 10px 12px;25 border-radius: 8px;26 background: linear-gradient(#34312c, #171614);27 box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -2px 0 rgba(0, 0, 0, 0.6), 0 1px 0 #000, 0 14px 28px -10px rgba(0, 0, 0, 0.8);28}29.oru__drum {30 position: relative;31 width: 28px;32 height: var(--oru-h);33 overflow: hidden;34 border-radius: 2px;35 background: #0e0e0d;36 color: #eee7d8;37 font-size: 26px;38 font-weight: 700;39}40.oru__drum::after {41 content: "";42 position: absolute;43 inset: 0;44 background: linear-gradient(rgba(0, 0, 0, 0.9), transparent 34%, rgba(255, 255, 255, 0.05) 50%, transparent 66%, rgba(0, 0, 0, 0.9));45}46.oru__drum--tenth {47 margin-left: 4px;48 background: #eee7d8;49 color: #b3261e;50}51.oru__drum--tenth::after {52 background: linear-gradient(rgba(40, 24, 10, 0.7), transparent 34%, transparent 66%, rgba(40, 24, 10, 0.7));53}54.oru__strip {55 display: block;56 width: 1ch;57 margin: 0 auto;58 line-height: var(--oru-h);59 text-align: center;60}61.oru__strip--roll {62 animation: oru-roll 1.2s linear infinite;63}64.oru__strip--step {65 animation: oru-step 12s linear infinite;66}67.oru__unit {68 margin-left: 6px;69 color: #8d8577;70 font-size: 11px;71 letter-spacing: 0.12em;72 text-transform: uppercase;73}74.oru__cap {75 color: #8d8577;76 font-size: 11px;77 letter-spacing: 0.08em;78}79@keyframes oru-roll {80 to {81 transform: translateY(calc(var(--oru-h) * -10));82 }83}84@keyframes oru-step {85 0%, 9% {86 transform: translateY(0);87 }88 10%, 19% {89 transform: translateY(calc(var(--oru-h) * -1));90 }91 20%, 29% {92 transform: translateY(calc(var(--oru-h) * -2));93 }94 30%, 39% {95 transform: translateY(calc(var(--oru-h) * -3));96 }97 40%, 49% {98 transform: translateY(calc(var(--oru-h) * -4));99 }100 50%, 59% {101 transform: translateY(calc(var(--oru-h) * -5));102 }103 60%, 69% {104 transform: translateY(calc(var(--oru-h) * -6));105 }106 70%, 79% {107 transform: translateY(calc(var(--oru-h) * -7));108 }109 80%, 89% {110 transform: translateY(calc(var(--oru-h) * -8));111 }112 90%, 99% {113 transform: translateY(calc(var(--oru-h) * -9));114 }115 100% {116 transform: translateY(calc(var(--oru-h) * -10));117 }118}119@media (prefers-reduced-motion: reduce) {120 .oru__strip--roll, .oru__strip--step {121 animation: none;122 }123}
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
/* * Author: @codepeek * License: MIT * Tags: #animated #dark #mechanical #mono #retro */
.oru {
--oru-h: 40px;
position: relative;
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 12px;
width: 260px;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.oru__sr {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.oru__case {
display: flex;
align-items: center;
gap: 3px;
padding: 10px 12px;
border-radius: 8px;
background: linear-gradient(#34312c, #171614);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -2px 0 rgba(0, 0, 0, 0.6), 0 1px 0 #000, 0 14px 28px -10px rgba(0, 0, 0, 0.8);
}
.oru__drum {
position: relative;
width: 28px;
height: var(--oru-h);
overflow: hidden;
border-radius: 2px;
background: #0e0e0d;
color: #eee7d8;
font-size: 26px;
font-weight: 700;
}
.oru__drum::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(rgba(0, 0, 0, 0.9), transparent 34%, rgba(255, 255, 255, 0.05) 50%, transparent 66%, rgba(0, 0, 0, 0.9));
}
.oru__drum--tenth {
margin-left: 4px;
background: #eee7d8;
color: #b3261e;
}
.oru__drum--tenth::after {
background: linear-gradient(rgba(40, 24, 10, 0.7), transparent 34%, transparent 66%, rgba(40, 24, 10, 0.7));
}
.oru__strip {
display: block;
width: 1ch;
margin: 0 auto;
line-height: var(--oru-h);
text-align: center;
}
.oru__strip--roll {
animation: oru-roll 1.2s linear infinite;
}
.oru__strip--step {
animation: oru-step 12s linear infinite;
}
.oru__unit {
margin-left: 6px;
color: #8d8577;
font-size: 11px;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.oru__cap {
color: #8d8577;
font-size: 11px;
letter-spacing: 0.08em;
}
@keyframes oru-roll {
to {
transform: translateY(calc(var(--oru-h) * -10));
}
}
@keyframes oru-step {
0%, 9% {
transform: translateY(0);
}
10%, 19% {
transform: translateY(calc(var(--oru-h) * -1));
}
20%, 29% {
transform: translateY(calc(var(--oru-h) * -2));
}
30%, 39% {
transform: translateY(calc(var(--oru-h) * -3));
}
40%, 49% {
transform: translateY(calc(var(--oru-h) * -4));
}
50%, 59% {
transform: translateY(calc(var(--oru-h) * -5));
}
60%, 69% {
transform: translateY(calc(var(--oru-h) * -6));
}
70%, 79% {
transform: translateY(calc(var(--oru-h) * -7));
}
80%, 89% {
transform: translateY(calc(var(--oru-h) * -8));
}
90%, 99% {
transform: translateY(calc(var(--oru-h) * -9));
}
100% {
transform: translateY(calc(var(--oru-h) * -10));
}
}
@media (prefers-reduced-motion: reduce) {
.oru__strip--roll, .oru__strip--step {
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.
◉ 1 views
Build it with AIA ready prompt with the code, the credit and how to adapt it to your project.
A trip-meter odometer whose red tenths drum rolls continuously and nudges the next drum over at every full turn.
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.