Site · 3D & WebGL

Undertow Particle data story that becomes the Earth

120,000 glowing particles form the Earth, ocean currents, a headline number, a 3D chart and a city you can flood with a slider.

Open live demo ↗ Download .md
undertow.demo
Undertow at desktop width
Desktop · 1440
Undertow at phone width
Phone · 390

What's in the prompt

  • A full written spec: layout, tokens, every animation with its numbers, responsive rules
  • The complete working code as the reference implementation
  • Accessibility, reduced motion and fallbacks already handled
  • A “Make it yours” checklist so your site looks like nobody else’s
Type
Site
Built with
HTML, CSS, JS · three.js 0.169.0
Prompt size
71 KB
Tags
three.js particles, data storytelling, scroll, nonprofit
Updated
2026-11-26

Use it in three steps

  1. Copy the prompt with the button above.
  2. Paste it into your AI (Claude, Claude Code, ChatGPT, Cursor…) and add your edits.
  3. Launch the single index.html anywhere: Cloudflare Pages, Netlify, GitHub Pages.

About the Undertow design

Undertow is a scroll-driven data story for a fictional ocean foundation, told by one field of up to 120,000 glowing particles. The page sits on a near-black navy so additive light reads well, with teal and pale foam for cold water, amber for warm water and coral for heat. Instrument Serif headlines carry one italic word each, Inter Tight handles body text and also the sampled 90% figure, and IBM Plex Mono labels data and sources. The signature is that the particles are the data: each of six chapters reshapes the same field into a picture of that chapter's argument, so the visuals and the copy say the same thing.

The page opens on a rotating Earth with continents, an axial tilt and a thin atmosphere. Scrolling turns it into ocean-gyre streamlines, then into the number 90% sampled from text, then into a 3D bar chart of the float network that rebuilds when you switch series. Next comes a harbour city where a slider raises the sea and counts the flooded blocks, and finally the foundation's logo beside a sign-up form. Frosted panels hold the copy, a chapter rail tracks progress, and the cursor stirs a vortex in the field while a click sends out a ripple.

Good for

How Undertow is built

Advanced three.js 0.169 via import map, one THREE.Points field with custom shaders, optional UnrealBloom, no images

Images, video and 3D

None: the globe, gyres, number, bars, city and logo are all generated as point clouds at load, with inline SVG figures as the no-WebGL fallback. To make it yours you change data arrays, coastline polygons or the sampled number in code, not image files.

Build it with Claude

Paste the prompt and ask for one index.html. The claude.ai preview may block the jsDelivr import, in which case you will see the SVG fallback figures; use that to check the data table, the series toggle, the sea-level count and the form, then open the downloaded file in a browser to see the particles.

Claude guide →

Build it with Claude Code

One index.html is enough; serve it with python3 -m http.server so the module import behaves as it will in production. Ask Claude Code to test ?q=low and ?q=high, confirm the renderer uses LinearSRGBColorSpace so the background stays near-black, and check that blocking the CDN switches to html.no-gl with working SVG figures.

Claude Code guide →

Build it with ChatGPT

Ask ChatGPT to deliver the classic UI script and the particle module as separate parts, in canvas or across replies, because the shaders and shape generators are long. Follow up on the globe and morph: check that only the two neighbouring shapes are computed per point and that each point picks its targets independently, so the adaptive draw-range halving still gives an even sample.

ChatGPT guide →

If it doesn’t work

Questions about Undertow

Is any of the Undertow data real?

Only the roughly 90% ocean heat figure, which the panel cites to IPCC AR6 WG I (2021). The float network numbers and the city are illustrative, and the page labels them that way.

What does someone without WebGL2 see?

The canvas is hidden and each chapter panel shows an inline SVG figure: a globe, gyres, the 90% number, a bar chart that follows the toggle, a city whose water follows the slider, and the logo. All controls keep working.

Make it yours

This prompt rebuilds one exact design. If everyone ships it unchanged, the sites will look alike. Before you paste it, change these lines so the result is yours. Each change is one edit to the prompt; the structure and the interactions stay intact.

  1. Brand and cause. Swap "Halocline Ocean Trust" for your own organisation: a grid-storage startup, a reforestation fund, a city transit agency. Keep six chapters and one fact or dataset per chapter, so the rail and the hold points still balance.
  2. The six shapes. The particle shapes are the signature. Each one must be the chapter's point. Pick your own sequence from the same building blocks: a sampled shape (a country outline, a product silhouette), a flow field (wind, traffic, money moving), a sampled number, a data-driven chart (bars, a radial chart, a dot-matrix of 100 people), a scenario object driven by a slider (a forest that thins, a battery that fills, a skyline that lights up), and your logo. Keep the vertex-shader morph, the stagger and the cursor vortex.
  3. The headline number. Replace "90%" with your one real, sourced statistic, and cite the source in the panel. Sample it in your display font. Keep it to 3 or 4 characters so the points stay dense.
  4. Palette. Replace teal, foam and amber (and the shader TEAL, FOAM and AMB constants) with your brand's cool base, light highlight and single warm accent. Keep --muted at ≥ 4.5:1 on --ink. Additive blending needs a near-black page, so keep the ground under about 8% lightness.
  5. Type pairing. Swap Instrument Serif + Inter Tight + IBM Plex Mono for another display face with a plain sans and a mono, for example Fraunces + Geist + Geist Mono, or Newsreader + Manrope + JetBrains Mono. The sampled number uses the heaviest sans weight.
  6. Data and scenario. Replace both bar series and the city with your own data, and the slider with your own "what if" (price, adoption %, years). Recompute the impact sentence from the same seeded geometry, so the visual and the number always agree.
  7. Copy voice. Rewrite each headline as a short, plain claim of six words or fewer, with one italic word, and keep the notes honest about what is illustrative.

Tell your AI: "Build exactly as specified, but with these changes: …", then list your edits.

More designs