Performance
PassFrame rate: 60 fps average, p5 59.9 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 4.4 KB · Runtime 1.6 KB
oscillationApache-2.0LoaderMaterial Loaders
A loader built with plain HTML and CSS by theIYD. Collected from Material Loaders under the Apache-2.0 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 4.4 KB · Runtime 1.6 KB
Issues 0 · Screen reader: Needs attention
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.
<div class="oscillate"></div>/* Copyright 2017 Idrees Dargahwala
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License. */
.oscillate {
position: absolute;
box-sizing: border-box;
top: 50;
margin-top: -10px;
border-radius: 16px;
width: 80px;
height: 20px;
padding: 4px;
background: #eee; }
.oscillate:before {
content: '';
position: absolute;
border-radius: 16px;
width: 20px;
height: 12px;
left: 0;
background: #000000;
-webkit-animation: oscillate 1s infinite linear;
animation: oscillate 1s infinite linear; }
@keyframes oscillate {
50% {
left: 56px;
background: #000000; } }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.
A small black capsule slides left and right inside a grey 80px track every second, like a progress bar that does not know the end.
Indeterminate progress in forms, uploads and syncing.
Change the #eee track, the #000000 slider, the 80px by 20px size, the 56px travel and the 1s oscillate.
Build a "Oscillating capsule loading animation" component in plain HTML, CSS and JavaScript (no framework). A small black capsule slides left and right inside a grey 80px track every second, like a progress bar that does not know the end. Use it for: Indeterminate progress in forms, uploads and syncing. Expose these controls: Change the #eee track, the #000000 slider, the 80px by 20px size, the 56px travel and the 1s oscillate. 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.