Delivery Tracker
A copy-paste maps & locations component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Maps & LocationsHTMLCSSany framework
Delivery en route — arriving in 8 min
Copy into your project
HTML
<div class="nuda-ml2-delivery">
<div class="nuda-ml2-delivery__map" aria-hidden="true">
<svg viewBox="0 0 240 100" fill="none">
<path class="nuda-ml2-delivery__route" d="M14,74 C50,20 120,88 226,26"
stroke="rgba(255,255,255,.15)" stroke-width="3" stroke-linecap="round" />
<path class="nuda-ml2-delivery__route-fill" d="M14,74 C50,20 120,88 226,26"
stroke="#e4ff54" stroke-width="3" stroke-linecap="round" />
<circle cx="14" cy="74" r="5" fill="#62b6ff" />
<circle cx="226" cy="26" r="5" fill="#fafafa" />
</svg>
<span class="nuda-ml2-delivery__van"></span>
</div>
<p class="nuda-ml2-delivery__text">Delivery en route — arriving in <strong>8 min</strong></p>
</div>CSS
.nuda-ml2-delivery {
display: flex;
flex-direction: column;
gap: 8px;
width: 240px;
max-width: 100%;
}
.nuda-ml2-delivery__map {
position: relative;
width: 240px;
height: 100px;
}
.nuda-ml2-delivery__map svg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.nuda-ml2-delivery__route-fill {
stroke-dasharray: 320;
stroke-dashoffset: 320;
animation: _nuda-ml2delivery-draw 3.2s ease-in-out infinite;
}
.nuda-ml2-delivery__van {
position: absolute;
top: 0;
left: 0;
width: 14px;
height: 10px;
border-radius: 3px;
background: #e4ff54;
box-shadow: 0 0 6px rgba(228,255,84,.6);
transform: translate(-50%,-50%);
offset-path: path("M14,74 C50,20 120,88 226,26");
offset-rotate: 0deg;
offset-distance: 0%;
animation: _nuda-ml2delivery-drive 3.2s ease-in-out infinite;
}
.nuda-ml2-delivery__text {
margin: 0;
font-size: 12px;
color: #cfcfcf;
}
.nuda-ml2-delivery__text strong {
color: #fafafa;
font-weight: 700;
}
@keyframes _nuda-ml2delivery-draw {
0% {
stroke-dashoffset: 320;
}
70%,100% {
stroke-dashoffset: 0;
}
}
@keyframes _nuda-ml2delivery-drive {
0% {
offset-distance: 0%;
}
70%,100% {
offset-distance: 100%;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-ml2-delivery__route-fill {
animation: none !important;
stroke-dashoffset: 0;
}
.nuda-ml2-delivery__van {
animation: none !important;
offset-distance: 100%;
}
}
How to use Delivery Tracker
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.