ETA Progress Path
A copy-paste maps & locations component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Maps & LocationsHTMLCSSany framework
ETA 12 min — 3.1 mi remaining
Copy into your project
HTML
<div class="nuda-ml2-eta">
<div class="nuda-ml2-eta__map" aria-hidden="true">
<svg viewBox="0 0 240 70" fill="none">
<path class="nuda-ml2-eta__track" d="M10,55 Q80,10 130,40 T230,15"
stroke="rgba(255,255,255,.12)" stroke-width="4" stroke-linecap="round" />
<path class="nuda-ml2-eta__fill" d="M10,55 Q80,10 130,40 T230,15"
stroke="#e4ff54" stroke-width="4" stroke-linecap="round" />
</svg>
<span class="nuda-ml2-eta__dot"></span>
</div>
<p class="nuda-ml2-eta__text">ETA <strong>12 min</strong> — 3.1 mi remaining</p>
</div>CSS
.nuda-ml2-eta {
display: flex;
flex-direction: column;
gap: 6px;
width: 240px;
max-width: 100%;
}
.nuda-ml2-eta__map {
position: relative;
width: 240px;
height: 70px;
}
.nuda-ml2-eta__map svg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.nuda-ml2-eta__fill {
stroke-dasharray: 280;
stroke-dashoffset: 280;
animation: _nuda-ml2eta-draw 3.6s ease-in-out infinite;
}
.nuda-ml2-eta__dot {
position: absolute;
top: 0;
left: 0;
width: 10px;
height: 10px;
border-radius: 50%;
background: #0a0a0a;
border: 2px solid #e4ff54;
box-shadow: 0 0 6px rgba(228,255,84,.7);
transform: translate(-50%,-50%);
offset-path: path("M10,55 Q80,10 130,40 T230,15");
offset-distance: 0%;
animation: _nuda-ml2eta-move 3.6s ease-in-out infinite;
}
.nuda-ml2-eta__text {
margin: 0;
font-size: 12px;
color: #cfcfcf;
}
.nuda-ml2-eta__text strong {
color: #fafafa;
font-weight: 700;
}
@keyframes _nuda-ml2eta-draw {
0% {
stroke-dashoffset: 280;
}
90%,100% {
stroke-dashoffset: 0;
}
}
@keyframes _nuda-ml2eta-move {
0% {
offset-distance: 0%;
}
90%,100% {
offset-distance: 100%;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-ml2-eta__fill {
animation: none !important;
stroke-dashoffset: 0;
}
.nuda-ml2-eta__dot {
animation: none !important;
offset-distance: 100%;
}
}
How to use ETA Progress Path
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.