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

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

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

Example: Round and Round, an interactive water cycle loop.

Five stages sit on a circular SVG ring, joined by flowing arrows, while a droplet circles the loop. Click or tap any stage, or Tab to it and press Enter, to read its explanation and a key fact in the side panel. Use the arrow keys, Previous/Next or the progress dots to step around, or press Play tour to auto-advance. With reduced motion turned on, the arrows become solid and still.

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

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 in Infographics