Performance
PassFrame rate: 60 fps average, p5 59.9 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 1.3 KB · Runtime 1.4 KB
line15MITLoaderCSS Loaders
A loader built with plain HTML and CSS by vineethtrv. Collected from CSS Loaders under the MIT licence and shown here live.
Quality report
The grade and score come from automated checks run at build or test time. If a check did not run, it is marked Not tested — numbers are never invented.
Frame rate: 60 fps average, p5 59.9 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 1.3 KB · Runtime 1.4 KB
Issues 0 · Screen reader: Pass
Honours reduced motion
No overflow
Frame rate and long-task figures were measured in headless Chromium with software WebGL. They are only comparable between components on this site, and do not represent real devices.
No axe-core violations.

Checked Nov 15, 2026 · Figures come from an automated script, not from hand-written samples.
Shown at real size.
The copy starts with the licence notice. Keep it when you use the code.
<span class="loader"></span>.loader {
--color-1: #fff;
--size: 1px;
width: calc(20 * var(--size));
height: calc(12 * var(--size));
display: block;
margin: auto;
position: relative;
border-radius: calc(4 * var(--size));
color: var(--color-1);
background: currentColor;
box-sizing: border-box;
animation: animloader 0.6s 0.3s ease infinite alternate;
}
.loader::after,
.loader::before {
content: '';
box-sizing: border-box;
width: calc(20 * var(--size));
height: calc(12 * var(--size));
background: currentColor;
position: absolute;
border-radius: calc(4 * var(--size));
top: 0;
right: 110%;
animation: animloader 0.6s ease infinite alternate;
}
.loader::after {
left: 110%;
right: auto;
animation-delay: 0.6s;
}
@keyframes animloader {
0% {
width: calc(20 * var(--size));
}
100% {
width: calc(48 * var(--size));
}
}Controls · HTML · CSS · JS
Edit the code and tune it with the controls. The preview updates as you type.

This component runs from a bundled build, so its script is read-only here. Edit the HTML and CSS; the full source is in the Code tab.
Edit every component live, tune it with controls, download the full source and copy the advanced prompts.
$49 one-timePlaceholder price
Test mode: no real payment is taken.
Free: preview, copy buttons and the lesson notes.
Three small rounded white blocks rise and fall in an alternating 0.6s rhythm, offset by 0.3s, simple and bouncy.
Inline loading, chat replies and small widgets.
Change --color-1 (#fff), --size (1px base), the 20 by 12 block size and the 0.6s and 0.3s timings.
Build a "Bouncing blocks bar" component in plain HTML, CSS and JavaScript (no framework). Three small rounded white blocks rise and fall in an alternating 0.6s rhythm, offset by 0.3s, simple and bouncy. Use it for: Inline loading, chat replies and small widgets. Expose these controls: Change --color-1 (#fff), --size (1px base), the 20 by 12 block size and the 0.6s and 0.3s timings. Support light and dark themes, respect prefers-reduced-motion with a still frame, keep text readable and controls keyboard accessible. Write original code; do not copy from paid or restricted component libraries.
A longer prompt with tuning, accessibility and integration steps.