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

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

One HTML file. Save it and open it in any browser.Open full screen

Example: Loop Lab, a gallery of ten original pure-CSS loaders.

The page opens with ten looping spinners on a dark grid: rings, dots, bars, ripples and a wave grid. Click Show code on any card to reveal its exact HTML and CSS, then Copy to grab it. Use Pause all (or press P) to freeze every loader. If your system prefers reduced motion, the gallery starts paused. Try copying the comet ring into your own project.

Written by AI from this prompt. Your results will vary.

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

Keep exploring

More in Animations & Effects