Build an Interactive Water Cycle Life-Cycle Infographic in One HTML File
Get a single-file circular SVG infographic of the water cycle with animated flowing arrows, clickable stages, a guided tour mode and a reduced-motion fallback.
You getone complete HTML file in a single code block, then 3 short ideas to extend it.
The prompt
Act as a senior front-end developer and information designer. Build "Round and Round: The Water Cycle", an interactive life-cycle infographic on one HTML page. The centrepiece is a circular SVG diagram with five stages spaced evenly around a ring: Evaporation, Transpiration, Condensation, Precipitation and Collection. Each stage is a round node with an emoji icon and a short label, joined by curved clockwise arrows, with a summary in the centre of the ring. Rules:
1. Clicking, tapping or pressing Enter on a stage highlights it and fills a side panel with the stage number, name, a two-sentence plain-English explanation and one concrete fact. Arrow keys move between stages.
2. Arrows animate with a flowing dash pattern, and a small droplet travels around the loop. Under prefers-reduced-motion, show static solid arrows and hide the droplet.
3. Add Previous, Next and a Play tour toggle that advances every four seconds, plus clickable progress dots.
4. Layout: diagram and panel sit side by side on wide screens and stack below 760px. The SVG scales with its viewBox to fit 360-1280px.
5. Palette: deep navy text on a pale blue background with white cards. Give each stage one accent colour, used only for rings and badges. Use a system font stack and a clear type scale.
6. Nodes are focusable buttons with aria-labels and visible focus rings, and the panel is aria-live. No external libraries, fonts, images or storage.
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
- The stages are placed with trigonometry on one SVG viewBox, so the ring stays perfectly circular and scales cleanly at any width.
- Stage content lives in a single data array, which makes swapping in another cycle (rock, carbon, product) a one-place edit.
- The dash-flow animation is plain CSS with a prefers-reduced-motion override, so motion is easy to disable without breaking the diagram.
Paste the prompt into ChatGPT, Claude or Gemini. Save the code as water-cycle.html and open it in any browser, or view it directly in the chat's preview or canvas panel.
Common edits
- Replace the five stage objects to show another loop, such as the carbon cycle, a butterfly life cycle or a product feedback loop.
- Change the tour interval or the accent colours, or add a sixth stage. The ring spacing recalculates automatically.
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
Keep exploring
More like this
Build a Classroom Grade Distribution Infographic with Histogram and Quartiles
A single HTML file that turns an inline array of class scores into a histogram with mean and median markers, a box plot, stat cards and a plain-language summary.
Build a Mitosis vs Meiosis Comparison Infographic in a Single HTML File
Get a ready-to-open infographic that lines up mitosis and meiosis phase by phase, with SVG cell diagrams and a toggle that highlights only the differences.
Build an Animated Water Cycle Step-by-Step Explainer in a Single HTML File
You get one self-contained HTML page with an animated SVG water cycle that walks through five stages, each in one sentence, with next, previous and play controls.
Build an Interactive Cause-and-Effect Infographic on the Causes of World War I
An interactive infographic in one HTML file that links World War I causes with arrows and reveals dated evidence notes when you click a card.
Build a 100-Person Icon Array Demographic Infographic in One HTML File
You get a single HTML file that shows a fictional town as 100 SVG person icons, with tabs for commute, age and housing and an interactive legend that highlights each group.
Build a Color-Coded Parts of Speech Grammar Cheat Sheet in One HTML File
A prompt that builds an interactive grammar cheat sheet where every word in the example sentences is colored by part of speech, and hovering or tapping a word explains why it fits that category.