Performance
Needs attentionFrame rate: 53.7 fps average, p5 29.9 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 4.5 KB · Runtime 2.2 KB
linesApache-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: 53.7 fps average, p5 29.9 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 4.5 KB · Runtime 2.2 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="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></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. */
.line {
position: absolute;
top: 50%;
margin-left: 10px;
width: 60px;
height: 4px;
background: #f44336;
-webkit-animation: spin 1.5s infinite ease;
animation: spin 1.5s infinite ease;
border-radius: 20px; }
.line:nth-of-type(2) {
-webkit-animation-delay: 0.1s;
animation-delay: 0.1s;
background: #2196f3; }
.line:nth-of-type(3) {
-webkit-animation-delay: 0.2s;
animation-delay: 0.2s;
background: #4caf50; }
.line:nth-of-type(4) {
-webkit-animation-delay: 0.3s;
animation-delay: 0.3s;
background: #ffeb3b; }
@keyframes spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg); }
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg); } }
@keyframes spin {
0% {
-webkit-transform: translate(-50%, -50%) rotate(0);
transform: translate(-50%, -50%) rotate(0); }
100% {
-webkit-transform: translate(-50%, -50%) rotate(360deg);
transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg); } }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.
Red, blue, green and yellow rounded lines spin round one after another, 0.1s apart over 1.5s, like a cheerful fan.
Google-style apps, kids products and colourful brands.
Change the #f44336, #2196f3, #4caf50 and #ffeb3b colours, the 60px by 4px lines and the 1.5s spin with 0.1s delays.
Build a "Four colour spinning lines" component in plain HTML, CSS and JavaScript (no framework). Red, blue, green and yellow rounded lines spin round one after another, 0.1s apart over 1.5s, like a cheerful fan. Use it for: Google-style apps, kids products and colourful brands. Expose these controls: Change the #f44336, #2196f3, #4caf50 and #ffeb3b colours, the 60px by 4px lines and the 1.5s spin with 0.1s delays. 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.