Migration Progress Banner
A copy-paste toasts & alerts component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Toasts & AlertsHTMLCSSany framework
Copy into your project
HTML
<div class="nuda-ta2-migration-banner" role="status" aria-live="polite">
<div class="nuda-ta2-migration-banner__row">
<span class="nuda-ta2-migration-banner__spinner" aria-hidden="true"></span>
<span class="nuda-ta2-migration-banner__text">Migrating your workspace to v3…</span>
<span class="nuda-ta2-migration-banner__pct">68%</span>
</div>
<div class="nuda-ta2-migration-banner__track" aria-hidden="true">
<div class="nuda-ta2-migration-banner__fill"></div>
</div>
</div>CSS
.nuda-ta2-migration-banner {
--c: #e4ff54;
display: flex;
flex-direction: column;
gap: .5rem;
background: #101012;
border: 1px solid rgba(255,255,255,.1);
border-radius: 10px;
padding: .65rem .9rem;
width: 100%;
max-width: 320px;
animation: _nuda-ta2migrationin .3s ease-out both;
}
.nuda-ta2-migration-banner__row {
display: flex;
align-items: center;
gap: .55rem;
}
.nuda-ta2-migration-banner__spinner {
flex-shrink: 0;
width: 13px;
height: 13px;
border-radius: 50%;
border: 2px solid rgba(228,255,84,.25);
border-top-color: var(--c);
animation: _nuda-ta2migrationspin .7s linear infinite;
}
.nuda-ta2-migration-banner__text {
flex: 1;
color: #e6e6e6;
font-size: .78rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.nuda-ta2-migration-banner__pct {
flex-shrink: 0;
color: var(--c);
font-size: .72rem;
font-weight: 700;
font-variant-numeric: tabular-nums;
}
.nuda-ta2-migration-banner__track {
position: relative;
height: 4px;
border-radius: 99px;
background: rgba(255,255,255,.1);
overflow: hidden;
}
.nuda-ta2-migration-banner__fill {
position: absolute;
inset: 0;
transform-origin: left center;
transform: scaleX(0);
border-radius: 99px;
background: var(--c);
animation: _nuda-ta2migrationfill 4s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes _nuda-ta2migrationin {
from {
opacity: 0;
transform: translateY(-6px);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes _nuda-ta2migrationspin {
to {
transform: rotate(360deg);
}
}
@keyframes _nuda-ta2migrationfill {
to {
transform: scaleX(.68);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-ta2-migration-banner {
animation: none;
}
.nuda-ta2-migration-banner__spinner {
animation: none;
}
.nuda-ta2-migration-banner__fill {
animation: none;
transform: scaleX(.68);
}
}
How to use Migration Progress Banner
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.