LoadersProgress Indicators
A native progress bar, a bar that waits for an unknown length, a four-step tracker and a ring, all driven by one slider and all showing the value as text.
Four loading spinners in plain CSS (ring, dots, bars and pulse), each with a text alternative, a pause switch and a still version for reduced motion.
Checked on 3 December 2026 in Chrome 143.0.7499.169: 12 automated checks. What the checks are
<section class="spn" aria-labelledby="spn-title">
<header class="spn__head">
<div>
<h2 class="spn__title" id="spn-title">Loading spinners</h2>
<p class="spn__lede">Four spinners in plain CSS. Each one has words, so the state is never only a picture.</p>
</div>
<label class="spn__pause">
<input class="spn__pause-box" id="spn-pause" type="checkbox">
<span class="spn__pause-text">Pause motion</span>
</label>
</header>
<ul class="spn__grid">
<li class="spn__tile">
<div class="spn__stage" role="status">
<span class="spn__ring" aria-hidden="true"></span>
<span class="spn__sr">Loading, ring spinner</span>
</div>
<p class="spn__name">Ring</p>
<p class="spn__use">Page or panel</p>
</li>
<li class="spn__tile">
<div class="spn__stage" role="status">
<span class="spn__dots" aria-hidden="true"><i></i><i></i><i></i></span>
<span class="spn__sr">Loading, dots spinner</span>
</div>
<p class="spn__name">Dots</p>
<p class="spn__use">Inline text</p>
</li>
<li class="spn__tile">
<div class="spn__stage" role="status">
<span class="spn__bars" aria-hidden="true"><i></i><i></i><i></i><i></i><i></i></span>
<span class="spn__sr">Loading, bars spinner</span>
</div>
<p class="spn__name">Bars</p>
<p class="spn__use">Uploads and audio</p>
</li>
<li class="spn__tile">
<div class="spn__stage" role="status">
<span class="spn__pulse" aria-hidden="true"><i></i><i></i></span>
<span class="spn__sr">Loading, pulse spinner</span>
</div>
<p class="spn__name">Pulse</p>
<p class="spn__use">Waiting for a reply</p>
</li>
</ul>
<p class="spn__note">With reduced motion on, each spinner shows a still shape instead.</p>
</section>.spn {
--spn-surface: #ffffff;
--spn-ink: #17202e;
--spn-muted: #4b586b;
--spn-line: #d8dee8;
--spn-tile: #f3f6fb;
--spn-a: #2f5fe0;
--spn-b: #d6472b;
--spn-c: #12806a;
--spn-d: #8a3fc4;
--spn-ring: #17202e;
box-sizing: border-box;
width: min(100%, 40rem);
padding: 1.25rem;
color: var(--spn-ink);
background: var(--spn-surface);
border: 1px solid var(--spn-line);
border-radius: 18px;
box-shadow: 0 1px 2px rgb(23 32 46 / 6%), 0 14px 32px -14px rgb(23 32 46 / 26%);
font: 1rem/1.45 system-ui, system, "Segoe UI", Roboto, sans-serif;
}
.spn *, .spn *::before, .spn *::after { box-sizing: border-box; }
.spn__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.spn__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1rem; }
.spn__title { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.spn__lede { margin: 0.25rem 0 0; max-width: 28rem; font-size: 0.9rem; color: var(--spn-muted); }
.spn__pause { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 0.9rem 0 0.7rem; font-size: 0.9rem; font-weight: 600; background: var(--spn-tile); border-radius: 999px; cursor: pointer; }
.spn__pause-box { appearance: none; position: relative; width: 38px; height: 22px; margin: 0; background: var(--spn-muted); border-radius: 999px; cursor: pointer; transition: background-color 0.2s ease; }
.spn__pause-box::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--spn-surface); border-radius: 50%; transition: transform 0.2s ease; }
.spn__pause-box:checked { background: var(--spn-a); }
.spn__pause-box:checked::after { transform: translateX(16px); }
.spn__pause-box:focus-visible { outline: 3px solid var(--spn-ring); outline-offset: 3px; }
.spn__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 0.75rem; }
.spn__tile { display: flex; flex-direction: column; align-items: center; padding: 1.25rem 0.75rem 1rem; text-align: center; background: var(--spn-tile); border: 1px solid var(--spn-line); border-radius: 14px; }
.spn__stage { position: relative; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin-bottom: 0.9rem; }
.spn__name { margin: 0; font-weight: 700; }
.spn__use { margin: 0.1rem 0 0; font-size: 0.8rem; color: var(--spn-muted); }
.spn__note { margin: 1rem 0 0; font-size: 0.8rem; color: var(--spn-muted); }
.spn__ring { width: 3.25rem; height: 3.25rem; border: 5px solid rgb(47 95 224 / 20%); border-top-color: var(--spn-a); border-radius: 50%; animation: spn-spin 0.9s linear infinite; }
.spn__dots { display: flex; gap: 0.4rem; }
.spn__dots i { width: 0.8rem; height: 0.8rem; background: var(--spn-b); border-radius: 50%; animation: spn-bounce 1s ease-in-out infinite; }
.spn__dots i:nth-child(2) { animation-delay: 0.15s; }
.spn__dots i:nth-child(3) { animation-delay: 0.3s; }
.spn__bars { display: flex; align-items: center; gap: 0.25rem; height: 3rem; }
.spn__bars i { width: 0.45rem; height: 100%; background: var(--spn-c); border-radius: 3px; transform-origin: center; animation: spn-wave 1s ease-in-out infinite; }
.spn__bars i:nth-child(2) { animation-delay: 0.1s; }
.spn__bars i:nth-child(3) { animation-delay: 0.2s; }
.spn__bars i:nth-child(4) { animation-delay: 0.3s; }
.spn__bars i:nth-child(5) { animation-delay: 0.4s; }
.spn__pulse { position: relative; width: 3.25rem; height: 3.25rem; }
.spn__pulse i { position: absolute; inset: 0; border: 3px solid var(--spn-d); border-radius: 50%; animation: spn-pulse 1.6s ease-out infinite; }
.spn__pulse i:nth-child(2) { animation-delay: 0.8s; }
.spn:has(.spn__pause-box:checked) .spn__ring,
.spn:has(.spn__pause-box:checked) i { animation-play-state: paused; }
@keyframes spn-spin { to { transform: rotate(360deg); } }
@keyframes spn-bounce { 0%, 80%, 100% { transform: translateY(0) scale(0.7); opacity: 0.6; } 40% { transform: translateY(-0.7rem) scale(1); opacity: 1; } }
@keyframes spn-wave { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@keyframes spn-pulse { 0% { transform: scale(0.2); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@media (max-width: 24rem) {
.spn { padding: 1rem; }
}
@media (prefers-color-scheme: dark) {
.spn {
--spn-surface: #151b27; --spn-ink: #edf1f8; --spn-muted: #a9b5c7; --spn-line: #2b3548; --spn-tile: #1d2535;
--spn-a: #7ea0ff; --spn-b: #ff8f77; --spn-c: #4fd1b4; --spn-d: #cf9bff; --spn-ring: #edf1f8;
box-shadow: 0 1px 2px rgb(0 0 0 / 35%), 0 16px 34px -14px rgb(0 0 0 / 70%);
}
.spn__ring { border-color: rgb(126 160 255 / 25%); border-top-color: var(--spn-a); }
.spn__pause-box:checked::after { background: #151b27; }
}
@media (prefers-reduced-motion: reduce) {
.spn__ring, .spn__dots i, .spn__bars i, .spn__pulse i { animation: none; }
.spn__pause-box, .spn__pause-box::after { transition: none; }
.spn__dots i:nth-child(1) { transform: translateY(0.35rem) scale(0.7); }
.spn__dots i:nth-child(2) { transform: translateY(-0.35rem) scale(1); }
.spn__dots i:nth-child(3) { transform: translateY(0.35rem) scale(0.7); }
.spn__bars i:nth-child(odd) { transform: scaleY(0.45); }
.spn__bars i:nth-child(even) { transform: scaleY(0.9); }
.spn__pulse i:nth-child(1) { transform: scale(0.45); opacity: 1; }
.spn__pulse i:nth-child(2) { transform: scale(0.9); opacity: 0.5; }
}Written by the author of the snippet. Each note has a test step or a markup check that reads the page.
LoadersA native progress bar, a bar that waits for an unknown length, a four-step tracker and a ring, all driven by one slider and all showing the value as text.
LoadersCard and list skeletons with a shimmer that stops under reduced motion, aria-busy on the container and a button that swaps them for real content.
ButtonsSix button hover, focus and press treatments in plain CSS: lift, underline sweep, fill, press, halo and icon slide.