Animated Notification by codepeek
Zoom
Saved
1 line⌘Z Undo
1<!--2 Author: @codepeek3 License: MIT4 Tags: #animated #dark #mono #progress #skeuomorphic5-->6<div class="prg">7 <div class="prg__top">8 <p class="prg__task">9 <span>Nightly backup</span>10 Photos library to NAS-0211 </p>12 <span class="prg__pct" aria-hidden="true">13 <span class="prg__col prg__col--t">14 </span>15 <span class="prg__col prg__col--u">16 </span>17 %18 </span>19 </div>20 <div class="prg__track" role="progressbar" aria-label="Nightly backup" aria-valuemin="0" aria-valuemax="100" aria-valuenow="68" aria-valuetext="68 percent, about 3 minutes left">21 <span class="prg__fill">22 </span>23 </div>24 <p class="prg__meta">25 <span>4.1 of 6.0 GB</span>26 <span>~3 min left</span>27 </p>28</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
<!--
Author: @codepeek
License: MIT
Tags: #animated #dark #mono #progress #skeuomorphic
-->
<div class="prg">
<div class="prg__top">
<p class="prg__task">
<span>Nightly backup</span>
Photos library to NAS-02
</p>
<span class="prg__pct" aria-hidden="true">
<span class="prg__col prg__col--t">
</span>
<span class="prg__col prg__col--u">
</span>
%
</span>
</div>
<div class="prg__track" role="progressbar" aria-label="Nightly backup" aria-valuemin="0" aria-valuemax="100" aria-valuenow="68" aria-valuetext="68 percent, about 3 minutes left">
<span class="prg__fill">
</span>
</div>
<p class="prg__meta">
<span>4.1 of 6.0 GB</span>
<span>~3 min left</span>
</p>
</div>1/* * Author: @codepeek * License: MIT * Tags: #animated #dark #mono #progress #skeuomorphic */2.prg {3 width: 330px;4 padding: 18px;5 border: 1px solid #2e2e2e;6 border-radius: 6px;7 background: #141414;8 color: #e9e2d0;9 font-family: ui-monospace, SFMono-Regular, Menlo, monospace;10 box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 30px -16px rgba(0, 0, 0, 0.8);11}12.prg *, .prg *::before, .prg *::after {13 box-sizing: border-box;14}15.prg__top {16 display: flex;17 align-items: flex-end;18 justify-content: space-between;19 margin-bottom: 12px;20}21.prg__task {22 display: grid;23 gap: 4px;24 margin: 0;25 color: #8a8476;26 font-size: 11px;27}28.prg__task span {29 color: #e9e2d0;30 font: 700 14px/1.2 "Helvetica Neue", Arial, sans-serif;31}32.prg__pct {33 display: flex;34 height: 30px;35 color: #ffb000;36 font-size: 30px;37 font-weight: 700;38 line-height: 30px;39 font-variant-numeric: tabular-nums;40 text-shadow: 0 0 12px rgba(255, 176, 0, 0.45);41}42.prg__col {43 height: 30px;44 overflow: hidden;45}46.prg__col::before {47 content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8";48 display: block;49 white-space: pre;50 animation: prg-roll 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;51}52.prg__col--t::before {53 --prg-to: -180px;54}55.prg__col--u::before {56 --prg-to: -540px;57}58@keyframes prg-roll {59 to {60 transform: translateY(var(--prg-to));61 }62}63.prg__track {64 position: relative;65 height: 20px;66 padding: 3px;67 border-radius: 3px;68 background: #0b0b0b;69 box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 0 1px #2a2a2a;70}71.prg__track::before {72 content: "";73 position: absolute;74 inset: 3px;75 background: #2a2210;76 -webkit-mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 9px);77 mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 9px);78}79.prg__fill {80 position: relative;81 display: block;82 width: 68%;83 height: 100%;84 overflow: hidden;85 background: linear-gradient(90deg, #b87300, #ffb000);86 -webkit-mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 9px);87 mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 9px);88 animation: prg-wipe 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;89}90@keyframes prg-wipe {91 from {92 clip-path: inset(0 100% 0 0);93 }94 to {95 clip-path: inset(0 0 0 0);96 }97}98.prg__fill::after {99 content: "";100 position: absolute;101 inset: 0;102 background: linear-gradient(90deg, transparent, rgba(255, 245, 220, 0.6), transparent) -40px 0 / 40px 100% no-repeat;103 animation: prg-sheen 2.4s ease-in-out 2s infinite;104}105@keyframes prg-sheen {106 to {107 background-position: calc(100% + 40px) 0;108 }109}110.prg__meta {111 display: flex;112 justify-content: space-between;113 margin: 10px 0 0;114 color: #8a8476;115 font-size: 11px;116}117@media (prefers-reduced-motion: reduce) {118 .prg__col::before {119 animation: none;120 transform: translateY(var(--prg-to));121 }122 .prg__fill, .prg__fill::after {123 animation: none;124 }125}
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
/* * Author: @codepeek * License: MIT * Tags: #animated #dark #mono #progress #skeuomorphic */
.prg {
width: 330px;
padding: 18px;
border: 1px solid #2e2e2e;
border-radius: 6px;
background: #141414;
color: #e9e2d0;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 30px -16px rgba(0, 0, 0, 0.8);
}
.prg *, .prg *::before, .prg *::after {
box-sizing: border-box;
}
.prg__top {
display: flex;
align-items: flex-end;
justify-content: space-between;
margin-bottom: 12px;
}
.prg__task {
display: grid;
gap: 4px;
margin: 0;
color: #8a8476;
font-size: 11px;
}
.prg__task span {
color: #e9e2d0;
font: 700 14px/1.2 "Helvetica Neue", Arial, sans-serif;
}
.prg__pct {
display: flex;
height: 30px;
color: #ffb000;
font-size: 30px;
font-weight: 700;
line-height: 30px;
font-variant-numeric: tabular-nums;
text-shadow: 0 0 12px rgba(255, 176, 0, 0.45);
}
.prg__col {
height: 30px;
overflow: hidden;
}
.prg__col::before {
content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8";
display: block;
white-space: pre;
animation: prg-roll 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.prg__col--t::before {
--prg-to: -180px;
}
.prg__col--u::before {
--prg-to: -540px;
}
@keyframes prg-roll {
to {
transform: translateY(var(--prg-to));
}
}
.prg__track {
position: relative;
height: 20px;
padding: 3px;
border-radius: 3px;
background: #0b0b0b;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 0 1px #2a2a2a;
}
.prg__track::before {
content: "";
position: absolute;
inset: 3px;
background: #2a2210;
-webkit-mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 9px);
mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 9px);
}
.prg__fill {
position: relative;
display: block;
width: 68%;
height: 100%;
overflow: hidden;
background: linear-gradient(90deg, #b87300, #ffb000);
-webkit-mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 9px);
mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 9px);
animation: prg-wipe 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
@keyframes prg-wipe {
from {
clip-path: inset(0 100% 0 0);
}
to {
clip-path: inset(0 0 0 0);
}
}
.prg__fill::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(90deg, transparent, rgba(255, 245, 220, 0.6), transparent) -40px 0 / 40px 100% no-repeat;
animation: prg-sheen 2.4s ease-in-out 2s infinite;
}
@keyframes prg-sheen {
to {
background-position: calc(100% + 40px) 0;
}
}
.prg__meta {
display: flex;
justify-content: space-between;
margin: 10px 0 0;
color: #8a8476;
font-size: 11px;
}
@media (prefers-reduced-motion: reduce) {
.prg__col::before {
animation: none;
transform: translateY(var(--prg-to));
}
.prg__fill, .prg__fill::after {
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.
◉ 0 views
Build it with AIA ready prompt with the code, the credit and how to adapt it to your project.
A determinate backup progress meter with amber LCD segments cut by a mask. The bar wipes in while odometer digits roll up to 68%, then a sheen passes.
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.