Build a Gallery of Ten Looping Pure-CSS Loading Spinners in One HTML File
You get a single HTML page showing ten original pure-CSS loading animations in a tidy grid, each with a reveal-and-copy code snippet.
The prompt
Act as a senior front-end developer who specializes in lightweight CSS motion.
Build a single-page gallery called "Loop Lab" that showcases ten original, pure-CSS loading animations on a responsive grid. Each loader is made only from HTML elements, pseudo-elements and CSS keyframes, with no images, SVG or JavaScript animation. Include these ten: a ring spinner, three bouncing dots, a double pulse ripple, an equalizer of five bars, two counter-rotating arcs, a flipping square, a conic-gradient comet ring, a circle of eight fading dots, a sliding progress stripe and a 3x3 wave grid.
Rules:
1. Each card shows the live loader in a centered stage, its name, one sentence on where it fits best, a "Show code" button and a "Copy" button.
2. "Show code" toggles a panel with that loader's exact HTML and CSS, uses aria-expanded, and the shown snippet must be the same source that styles the live preview.
3. "Copy" uses the Clipboard API, and if that fails, selects the snippet text and tells the user to press Ctrl+C. Show a short status message, never an alert.
4. Use a dark navy background, three accent colors (violet, teal, coral), a clear type scale and generous spacing; the grid fits 360-1280px wide.
5. Add a "Pause all" toggle and the P key shortcut; start paused when prefers-reduced-motion is set.
6. Prefix every class and keyframe name so loaders never clash.
Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.Example output
Tips and common edits
Why this works
- One data source drives both the live preview and the snippet, so copied code always matches what you see.
- Prefixed class and keyframe names keep ten loaders from clashing on one page or in your project.
- A clipboard fallback that selects the text means Copy still works inside sandboxed previews.
Paste into ChatGPT, Claude or Gemini, save the returned code as loop-lab.html and open it in any browser, or view it in the chat's preview or canvas panel.
Common edits
- Swap the three accent hex values to match your brand, and every loader recolors at once.
- Change animation durations in each snippet to make loaders calmer or snappier, or add a size slider.
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
Keep exploring
More like this
Build a Gallery of 12 Pure-CSS Loading Spinners with Copyable Code
You get a single HTML page showing 12 live CSS-only loaders, each with its own isolated CSS, a copy button, and a reduced-motion fallback that pulses gently instead of spinning.
Build an Animated Gradient Glitch Title Hero Header in One HTML File
A ready-to-paste prompt for a website hero header with a shifting gradient headline, a subtle glitch flicker, three switchable color presets and a reduced-motion fallback.
Build an Animated Nonprofit Impact Stats Counter Section in One HTML File
Get a polished nonprofit impact section where six key figures count up with easing on scroll, with formatted thousands, percentages and currency plus believable captions.
Build a Button Micro-Interaction Showcase with Ripple, Magnetic Hover and Checkmark
You get one self-contained HTML page with three accessible button micro-interactions: ripple, magnetic hover and a success checkmark. Each card has a copyable standalone code snippet.
Build a Page Transition Demo with Wipe, Curtain and Morph Effects in One HTML File
A single HTML file that simulates a four-page website and animates every page change with wipe, curtain or morph transitions, plus an adjustable duration and a reduced-motion crossfade.
Build an Animated Headline Text Reveal Playground in a Single HTML File
A one-file playground where you type a headline, preview typewriter, letter stagger, mask wipe or scramble reveals, and copy clean code for the chosen effect.