用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
碳循环滚动科普页是一个单页科学故事,围绕一幅横跨天空、陆地、海洋和岩石的剖面插画展开。整个场景全部由代码绘制,页面一打开就已经在动:一束束发光的小粒子沿着弯曲路径在四个碳库之间流动,它们的速度和密度体现了每年交换量的大小。读者滚动页面时,场景保持固定,简短的文字步骤从旁经过,镜头从大气平移到森林、开阔海洋和地下化石层,并伴随缩放。接着故事把时间快进:从岩石层升起的细橙色线在工业时代逐渐变粗,让失衡在文字点明之前就先被看见。随后是逐年收支账目,最后是收尾亮点:一个情景滑块,三个用大白话写的档位,拖动它会重绘到本世纪末的温度曲线,更新大号读数,并改变天空的颜色。每个数字都带有 Illustrative 标注,结尾的来源说明会解释数值是如何取整的。视觉上采用从黄昏到深海的靛蓝与青绿色调,搭配熔岩橙和酸性青柠色的流动,扁平分层形状加细腻颗粒感,更像海报而不是教科书。它适合教师、科学传播者、博物馆、非营利组织和新闻编辑部,用来做那种读者真能看完的科普。要改编它,只需更换主题、四个碳库、四条流动和情景标签;同样的结构也适用于水循环、氮循环,或任何在多个储存库之间转移某种量的系统。项目基于 Vite、原生 TypeScript 和 GSAP 构建,不需要后端,在开启减少动态效果时会回退为分步静态场景。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Carbon Cycle Scroll Explainer
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A single-page illustrated scroll story by [BRAND], a small independent science explainer studio, about [TOPIC]. One large code-drawn SVG cross-section (sky, land with forest and mountains, open ocean, rock strata with fossil seams) is moving from the first frame: glowing particles stream between the four reservoirs ([RESERVOIRS]) along curved paths, with speed and density showing the size of each flow ([FLOWS]). The scene stays pinned while text steps scroll past and the camera pans and zooms from reservoir to reservoir. The fourth, human-driven flow starts as a thin thread and thickens through the industrial era. A yearly ledger follows, then a scenario lab: a slider with three stops ([SCENARIOS]) that smoothly redraws a curve of [OUTCOME], updates a big readout and shifts the sky tint. Every figure is tagged Illustrative and a closing sources note explains the rounding.
- Audience: High-school and early-university classes, curious adult readers, and the teachers, museum educators, nonprofits and newsrooms who would link to or project this page.
- Goal: Make one system story understandable in about four minutes of scrolling, let the reader feel the imbalance before it is stated, and end with an interaction (the scenario slider) that makes the choice between futures tangible. Secondary goal: easy reuse in class (print button, discussion prompts).
- Tone: Plain, warm and exact. Short sentences, concrete round numbers, no alarmism and no jokes about the subject. Poster-bold visuals, calm text. Write all copy for the default values below and keep it in src/content.ts; if the variables change, rewrite every headline, step, ledger row, FAQ answer and sources line to fit the new topic with the same length and rhythm.
## Stack
- Framework: Vite 5 + vanilla TypeScript
- Styling: Vanilla CSS
- Libraries: vite 5 (MIT), typescript 5 (Apache-2.0), gsap 3.12 (core + ScrollTrigger) (GSAP Standard License (free, commercial use allowed)), lucide 0.4x (vanilla package) (ISC), @fontsource-variable/bricolage-grotesque (OFL-1.1), @fontsource/atkinson-hyperlegible (OFL-1.1), @fontsource/jetbrains-mono (OFL-1.1)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- Scaffold with the Vite vanilla-ts template; package.json scripts: dev = vite, build = tsc && vite build, preview = vite preview.
- vite.config.ts: base './', build.outDir 'dist', build.sourcemap false, build.assetsInlineLimit 0. Single entry index.html.
- File layout: src/main.ts (boot, fonts, icons), src/content.ts (every string and number on the page, typed), src/scene.ts (builds the inline SVG scene and exposes named groups), src/flows.ts (particle clock), src/story.ts (ScrollTrigger steps and camera), src/scenario.ts (slider, curve paths, readout, tint), src/styles.css (tokens, layout, keyframes, reduced-motion and print rules).
- In main.ts import '@fontsource-variable/bricolage-grotesque', '@fontsource/atkinson-hyperlegible/400.css', '@fontsource/atkinson-hyperlegible/700.css', '@fontsource/jetbrains-mono/500.css'.
- Register GSAP once: import { gsap } from 'gsap'; import { ScrollTrigger } from 'gsap/ScrollTrigger'; gsap.registerPlugin(ScrollTrigger).
- Icons: import only the needed icons from 'lucide' and call createIcons({ icons: { Wind, Waves, Trees, Layers, Flame, Thermometer, Info, ArrowDown, Printer, Plus, Minus } }) after the DOM is built; elements use data-lucide attributes.
- Build the scene SVG in TypeScript (scene.ts) from content.ts data and inject it into #scene; do not ship it as an external image. viewBox origin 0 0 1600 1000, preserveAspectRatio 'xMidYMid slice'.
- Define all colors as CSS custom properties on :root in styles.css and reference the same values from the SVG via fill='var(--name)' where possible.
- <title> is '[BRAND] · [TOPIC], explained'. Favicon: public/favicon.svg, a 32x32 indigo (#160F3D) rounded square with two curved arrows forming a ring, one acid lime (#C6FF3D), one molten orange (#FF6A1A).
- Gate all motion on window.matchMedia('(prefers-reduced-motion: reduce)'); the reduced path is described in Design > motion.
## Variables
- [BRAND] — Studio or publication name (default: "Lowtide Lab"). Who publishes the explainer. Used in the header wordmark, title and footer.
- [TOPIC] — System the story explains (default: "The carbon cycle"). Any system that moves one quantity between four stores.
- [RESERVOIRS] — Four reservoirs, in story order (default: "Atmosphere, Land, Ocean, Fossil reserves"). Comma-separated, exactly four. Mapped onto sky, land, ocean and rock strata in the scene.
- [FLOWS] — Four flows, in story order (default: "Photosynthesis, Respiration and decay, Ocean exchange, Fossil fuel burning"). Comma-separated, exactly four. The last one is the human-driven flow that thickens in the industrial-era step.
- [SCENARIOS] — Three slider stops, best to worst (default: "Rapid cuts, Current path, High emissions"). Plain invented labels; never official scenario codes.
- [OUTCOME] — What the scenario curve shows (default: "Warming by 2100, in °C"). Y-axis label and readout unit of the scenario curve.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/carbon-cycle-scroll-explainer in the footer (default: yes; delete this line to remove it)
The copy under Pages & Sections is written for the default values. If your values differ, rewrite every headline, paragraph, label and image for them — same length, tone and structure. Layout, colors, type and motion stay as described.
Keep all copy, image paths and links in one content file (for example `src/content.ts`), keyed by section, so the content can be swapped later without touching components.
## Design
### Colors
- Night Indigo `#160F3D` — Page background, upper sky, card fill (at 90% opacity over the scene)
- Dusk Violet `#3B1F7A` — Mid sky gradient stop, section bands, slider track
- Horizon Ember `#FF8A3D` — Low sky glow band just above the horizon, sun disk rim
- Deep Teal `#06535F` — Ocean surface layer, ledger section background
- Abyss `#03252C` — Deep ocean layer, footer background
- Molten Orange `#FF6A1A` — Human-driven flow (fossil burning) particles and stroke, primary CTA fill, High-emissions curve
- Acid Lime `#C6FF3D` — Biosphere flows (photosynthesis), slider thumb, active step marker, Rapid-cuts curve, focus rings
- Glow Cyan `#5CE1E6` — Ocean exchange particles, links, Current-path curve
- Ember Pink `#FF3D7F` — Warming tint target for the sky in the scenario lab, warning highlight on the net-change bar
- Forest `#0E6B4A` — Hills and tree bodies (trees use Forest with Acid Lime tops)
- Strata Rust `#7A3A1E` — Upper rock band
- Strata Umber `#4A2418` — Middle rock band
- Coal Black `#120B0A` — Fossil seams and lower rock band
- Mist `#F3EEFF` — Body and heading text on dark grounds (AA+ on Night Indigo and Deep Teal)
- Lavender Gray `#B9B0E0` — Secondary text, axis labels, captions (AA on Night Indigo)
### Typography
- Display: hero headline, step titles, section headings, big readout. Tight tracking -0.02em, line-height 0.95 for hero, 1.05 for others.: Bricolage Grotesque (variable) (OFL), weights 700/800
- Body text, card copy, FAQ, buttons. 18px desktop / 17px mobile, line-height 1.55.: Atkinson Hyperlegible (OFL), weights 400/700
- Numbers, stock labels, year counter, Illustrative tags, axis ticks. Uppercase for tags with 0.08em tracking.: JetBrains Mono (OFL), weights 500
### Layout & motion
- Spacing: 8px base grid. Content max-width 1200px with 6vw side padding on desktop and 16px gutters on mobile. Sections are separated by 160px (desktop) / 96px (mobile). Hero headline 112px desktop / 52px mobile (clamp(52px, 8vw, 112px)); section headings clamp(36px, 5vw, 64px); step titles 40px desktop / 28px mobile.
- Radius: Cards and step panels 20px; buttons and chips fully rounded (999px); slider track 999px; ledger bars 6px. The scene itself is full-bleed with no radius.
- Motion: Load: the scene fades in from Night Indigo over 600ms, then the hero headline lines rise 24px and fade in with a 90ms stagger (power3.out, 700ms). Particles start immediately; there is no static first frame.
- Motion: Particle clock: one requestAnimationFrame loop in flows.ts drives every flow. Each flow is an SVG path sampled once into 240 points (Float32Array, via getPointAtLength at init). Each particle i of a flow sits at u = (time * speed + i / count) mod 1 and is drawn as a circle of radius 2.5 to 4px with a soft glow (an feGaussianBlur stdDeviation 2 filter on the flow group). count = clamp(round(value / 3), 3, 44); speed = 0.05 + value / 1500 cycles per second. Every guide path is also stroked at 25% opacity, 1.5px, dash 2 6.
- Motion: The loop pauses when the story section is fully offscreen (IntersectionObserver) and when document.hidden is true.
- Motion: Camera: a GSAP timeline scrubbed across the story track (scrub 0.6) tweens a proxy {x, y, w, h} through one keyframe per step and writes it to the scene's viewBox in onUpdate. Keyframes are listed in the story section.
- Motion: Step activation: each step panel has a ScrollTrigger (start 'top 60%', end 'bottom 40%'); the active panel is opacity 1, inactive panels 0.3; the active reservoir in the scene gets a 3px Acid Lime outline glow that fades in over 400ms, and its row in the reservoir gauge highlights.
- Motion: Industrial era: a second scrubbed tween drives a value industry 0 to 1 across step 5; the fossil-burning flow's stroke width goes 1px to 7px, its particle count 3 to 40, its speed x3, and the year counter interpolates 1850 to 2025 (rounded to whole years).
- Motion: Counters: the atmosphere stock in step 6 counts 600 to 900 with the scroll (scrubbed, whole numbers, tabular-nums).
- Motion: Ledger bars grow from 0 to their width over 900ms (power2.out) with a 120ms stagger when the ledger enters the viewport (once).
- Motion: Scenario curve: dragging the slider interpolates the projection path between the two neighbouring scenario point arrays every input event; on release the thumb snaps to the nearest stop and the path tweens to that scenario over 500ms (power2.inOut) using the same interpolation. The readout number tweens with it; the sky tint variable --heat (0, 0.45, 1 for the three stops) tweens alongside.
- Motion: Buttons: hover lifts 2px and brightens 8%; press scales 0.97. FAQ items expand with a 280ms height transition and the plus icon rotates 45 degrees.
- Motion: prefers-reduced-motion: no camera tweens and no scrub. Each step snaps the viewBox to its keyframe instantly when it becomes active (stepped static scenes). Particles are not animated: each flow is drawn as a static dashed stroke with arrowheads, width scaled by value. Counters show their end values. Slider updates the curve instantly without tweening. Load fade-ins are removed.
- Imagery: No photographs and no bitmap images. Everything is drawn in code as flat, layered vector shapes with a visible grain: one SVG feTurbulence (baseFrequency 0.9, numOctaves 2) noise rect over the whole scene at 9% opacity with mix-blend-mode overlay, plus a CSS grain overlay on section backgrounds using the same SVG filter as a data URL. Shapes are poster-like: bold silhouettes, no outlines, at most three tones per object, no gradients except the sky and the ocean depth. Icons are Lucide at 20px, stroke 1.75, in Mist or the flow color. No mascots, no characters, no people, no recognizable landmarks or real facilities; the factory is a generic block with two chimneys.
## Pages & Sections
### [BRAND] · [TOPIC], explained (`index.html`)
1. **Header (shared, fixed)** — Left: wordmark 'Lowtide Lab' in Bricolage Grotesque 800 at 20px, preceded by a 22px code-drawn ring mark (two curved arrows, one Acid Lime, one Molten Orange). Center (desktop only): anchor links 'Story', 'Ledger', 'Scenarios', 'Sources' pointing to #story, #ledger, #scenarios, #sources. Right: a chip with the Lucide Info icon and the mono text 'ILLUSTRATIVE FIGURES' that scrolls to #sources on click.
Layout: Fixed top bar, height 64px, full width, 6vw side padding (16px mobile). Transparent over the hero; after 80px of scroll it gets a Night Indigo background at 85% opacity with a 1px bottom border rgba(198,255,61,0.18). On mobile the center links hide and the chip shrinks to icon plus 'ILLUSTRATIVE'.
Motion: Background fades in over 200ms when the scroll threshold is crossed.
2. **Hero + pinned story scene (#story)** — The scene, built in scene.ts on a 1600x1000 canvas: (1) Sky 0-520: vertical gradient Night Indigo (top) to Dusk Violet (y 340) to Horizon Ember (y 515); a low sun disk r=70 at (1190, 470) in Molten Orange with an Horizon Ember rim; three flat clouds in Dusk Violet lightened 12%. (2) Land, x 0-840: two rolling hill silhouettes in Forest and a darker Forest shade, a mountain ridge between x 160 and 430 peaking at y 250 with a Mist-colored cap, 18 triangular trees (Forest trunks, Acid Lime tops, heights 40-90px) across x 440-760, and a small generic factory block at (650, 470) with two chimneys. (3) Ocean, x 820-1600, y 520-770: surface band Deep Teal, deep band Abyss, four thin wave lines in Glow Cyan at 30% opacity, a sloping seabed. (4) Rock strata y 770-1000 across the full width: bands Strata Rust, Strata Umber, Coal Black, with five black lens-shaped fossil seams and one rounded oil pocket at (420, 900). (5) Flow paths (cubic curves): Photosynthesis from sky (500, 160) down into the forest canopy (600, 440), Acid Lime; Respiration and decay from soil (560, 520) back up to sky (420, 180), Acid Lime at 60%; Ocean exchange as two parallel arcs between sky (1150, 200) and ocean surface (1250, 560), one down and one up, Glow Cyan; Fossil fuel burning from the oil pocket (420, 900) up through the factory chimney (665, 430) into the sky (760, 140), Molten Orange. Flow values (Gt C per year, illustrative): 120, 120, 90 each way, and 1 rising to 10. (6) Reservoir hit areas: invisible rects per reservoir used for the active outline. Over the scene, the hero text (step 0): eyebrow in mono 'AN ILLUSTRATED STORY · 4 MIN'; headline 'Where the carbon goes.'; subline 'Follow one atom of carbon through sky, sea, soil and stone, then choose the century it lands in.'; buttons 'Start the story' (Molten Orange fill, Night Indigo text, Lucide ArrowDown) scrolling to step 1, and 'Jump to the scenarios' (outline, 1.5px Mist border) scrolling to #scenarios. Under the buttons, three mono chips: '4 RESERVOIRS', '4 FLOWS', '3 FUTURES'.
Layout: The section is a scroll track 800svh tall containing a sticky scene container (position: sticky; top: 0; height: 100svh; full width) holding the SVG at 100% width and height, and an overlay column of seven step panels that scroll over it. Hero text (step 0) sits bottom-left: left 6vw, bottom 12svh, max-width 640px, no panel background, with a radial Night Indigo shade behind it at 70% so text stays AA. Mobile (<768px): the sticky scene is 58svh tall and the steps flow below it (not overlaid), so panels scroll up underneath the sticky scene; hero text then sits in the first panel below the scene.
Motion: Camera keyframe for step 0 is the full canvas (0 0 1600 1000). Particles run from load. Hero text fades out (opacity to 0, y -30px) as step 1 approaches.
3. **Story steps 1-6 (inside #story)** — Each panel: mono tag with Lucide icon and stock, Bricolage title, 2-3 sentence body, and a small 'ILLUSTRATIVE' tag. Step 1 Atmosphere (icon Wind, tag 'ATMOSPHERE · ~900 GT C'): title 'The smallest vault.' body 'Of the four places that hold carbon, the air holds the least. That is exactly why it is sensitive: add a little, and its share changes fast.' Step 2 Land (icon Trees, tag 'LAND · ~2,000 GT C IN PLANTS AND SOIL'): title 'The forest breathes.' body 'Leaves pull about 120 billion tonnes of carbon out of the air each year. Roots, microbes and fires send about the same back. In, out, in, out, like a slow tide.' Step 3 Ocean (icon Waves, tag 'OCEAN · ~40,000 GT C'): title 'The quiet giant.' body 'The ocean holds more carbon than everything else combined. Its surface trades about 90 billion tonnes with the air each year, and slow currents carry some of it down to water that will not see the sky for centuries.' Step 4 Fossil reserves (icon Layers, tag 'FOSSIL RESERVES · ~5,000 GT C'): title 'The sealed basement.' body 'Coal, oil and gas are ancient plants and plankton, pressed for millions of years. Left alone, this vault leaks almost nothing: a thin thread from volcanoes and weathering rock.' Step 5 Industrial era (icon Flame, tag 'FOSSIL FUEL BURNING · 1 → 10 GT C / YR'): title 'Then we opened it.' body 'Burning fuel now moves about 10 billion tonnes a year from rock to air. That is small next to the forest and ocean trades. The difference is that it only flows one way.' plus a large mono year counter 'YEAR 1850' that runs to 'YEAR 2025'. Step 6 Imbalance (icon Thermometer, tag 'ATMOSPHERE · 600 → 900 GT C'): title 'Half stays up.' body 'Land and ocean soak up about half of what we add. The rest stays in the air, and the air is the vault that sets the temperature.' plus a large counter of the atmosphere stock and a button 'See where it leads' scrolling to #scenarios. Reservoir gauge HUD: four rows (icon, reservoir name, mono stock, a 120px bar scaled on a log scale), the active row in Acid Lime.
Layout: Desktop: panels are 420px wide, left 6vw, each in its own 100svh slot, vertically centered; panel fill Night Indigo at 90%, 1px border rgba(198,255,61,0.2), radius 20px, padding 28px. The reservoir gauge HUD is fixed inside the sticky container at top 96px, right 6vw, 260px wide, same panel style; it hides during step 0. The year counter and atmosphere counter render at 72px in JetBrains Mono inside their panels. Mobile: panels full width minus 16px gutters, min-height 70svh slots, HUD hidden and replaced by a single-line mono stock under each panel tag.
Motion: Camera keyframes (x y w h): step 1 Atmosphere 300 0 1000 625; step 2 Land 120 220 900 563; step 3 Ocean 760 300 840 525; step 4 Fossil reserves 120 375 1000 625 (bottom edge at 1000, strata fill the lower half of the view); step 5 back out to 200 60 1300 813 so chimney, oil pocket and sky are all visible; step 6 full canvas 0 0 1600 1000. Step 5 drives the industry value 0 to 1; step 6 drives the atmosphere counter and slightly darkens the sky (sky gradient top toward Dusk Violet, 20%).
4. **Yearly ledger (#ledger)** — Eyebrow 'THE YEARLY LEDGER'. Heading 'Big trades, one leak.' Intro 'Each year carbon moves in four main streams. Three of them nearly balance. The fourth does not.' Four rows: 'Photosynthesis' Acid Lime bar, 'Air → land', '120 Gt C / yr'; 'Respiration and decay' Acid Lime 60% bar, 'Land → air', '120 Gt C / yr'; 'Ocean exchange' Glow Cyan double bar, 'Air ⇄ ocean', '90 in · 90 out'; 'Fossil fuel burning' Molten Orange bar, 'Rock → air', '10 Gt C / yr, one way'. Below, a net row with an Ember Pink bar: 'Net change in the air', '+5 Gt C every year'. Every value carries a tiny mono 'ILLUSTRATIVE' superscript tag.
Layout: Full-width band on Deep Teal with grain overlay. Content max-width 1200px: heading block on the left 4 columns, rows on the right 8 columns (desktop 12-column grid, 24px gaps). Each row: icon, name (Atkinson 700, 20px), direction label in Lavender Gray, a bar track 100% width with the bar width proportional to value (120 = 100%), value in mono right-aligned. The net row is separated by a 1px Mist 20% rule. Mobile: single column, rows stack name over bar over value.
Motion: Bars grow on first view (see Design motion). The fossil bar pulses its glow every 2.4s (opacity 0.7 to 1).
5. **Scenario lab (#scenarios)** — Eyebrow 'SCENARIO LAB'. Heading 'Pick the century.' Intro 'Drag the slider to choose how fast emissions fall. Every curve starts from the same place: today.' Slider with three labeled stops 'Rapid cuts', 'Current path', 'High emissions' and a one-line description under the active stop: Rapid cuts 'Emissions halve by 2040 and reach near zero by 2060.'; Current path 'Emissions plateau, then drift down slowly after 2050.'; High emissions 'Emissions keep rising until late in the century.' Big readout: '+2.5 °C' (default stop Current path) with caption 'Warming by 2100 compared with the late 1800s · illustrative'. Readouts per stop: +1.5, +2.5, +4.0. Chart: x axis 1850-2100 with ticks every 50 years, y axis 0 to 5 °C with gridlines every 1 °C, a solid Mist history line 1850-2025 from 0.0 rising to 1.3 (hand-set points: 1850 0.0, 1875 0.0, 1900 0.1, 1925 0.2, 1950 0.3, 1975 0.4, 2000 0.8, 2025 1.3), a vertical dashed 'Today' marker at 2025, and one projection path 2025-2100 with 16 points every 5 years. Scenario arrays (2025 to 2100): Rapid cuts 1.3,1.38,1.45,1.5,1.53,1.55,1.56,1.56,1.56,1.55,1.55,1.54,1.53,1.52,1.51,1.5; Current path 1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0,2.1,2.2,2.25,2.3,2.35,2.4,2.45,2.5; High emissions 1.3,1.42,1.55,1.7,1.85,2.0,2.2,2.4,2.6,2.8,3.0,3.2,3.4,3.6,3.8,4.0. Projection stroke color interpolates Acid Lime → Glow Cyan → Molten Orange across the slider, with a soft 18% fill under the curve in the same color. Beside the chart, a horizon strip: a 16:5 crop of the scene's sky, sun, hills and sea (reused symbols) whose sky gradient blends toward Ember Pink and Molten Orange as --heat rises.
Layout: Night Indigo background. Two columns on desktop (7/5): left the chart card (radius 20px, Dusk Violet at 35% fill, padding 32px, chart SVG viewBox 0 0 800 400, responsive width), right a stack of readout (Bricolage 800, 120px, color follows the curve), caption, the stop description and the horizon strip (radius 16px). The slider spans the full content width under both columns: 10px track in Dusk Violet with a filled part in the curve color, 32px Acid Lime thumb with a 4px Night Indigo ring, stop labels below at 0%, 50%, 100% as clickable buttons. Mobile: everything stacks: readout, chart, slider, description, horizon strip; thumb stays 32px for touch.
Motion: Slider is a native input type range (min 0, max 100, step 1, default 50) styled with CSS; position 0-50 interpolates Rapid cuts→Current path, 50-100 Current path→High emissions; snap on change; Left/Right keys move 1, PageUp/PageDown and clicking a stop label jumps between stops. aria-valuetext reads e.g. 'Current path, about 2.5 degrees of warming by 2100'. Curve path is rebuilt each frame from the interpolated points as a Catmull-Rom spline converted to cubic Bezier commands (tension 0.5), never morphed with a plugin.
6. **Quick questions** — Heading 'Quick questions'. Four accordion items. 'If plants absorb carbon, can we just plant trees?' → 'Trees help, but the forest trade is a loop: what grows also decays or burns. Planting adds a one-time store; it cannot keep up with a one-way flow from rock that runs every year.' 'Will the ocean fill up?' → 'Not fill, but slow down. Warmer water holds less gas, and the extra carbon makes seawater more acidic, which is hard on shells and reefs.' 'How long does added carbon stay in the air?' → 'A large share moves into land and ocean within decades. A smaller share stays for centuries, and some for many thousands of years.' 'Why are all the numbers rounded?' → 'So the story stays readable. The sizes and directions are right; the exact values change from year to year and between studies. See the sources note below.'
Layout: Max-width 820px centered. Each item a full-width button row (Atkinson 700, 20px, Mist) with a Lucide Plus icon on the right, 1px bottom border Mist 15%, padding 22px 0. Answer text Lavender Gray 18px, max 64ch.
Motion: Height transition 280ms, icon rotates 45deg when open. Only one item open at a time.
7. **Use it in class** — Eyebrow 'FOR TEACHERS'. Heading 'Use it in class.' Three cards. Card 1 '15-minute walkthrough': ordered list 'Scroll steps 1-4 together (5 min)', 'Pause on step 5 and ask what changed (3 min)', 'Let pairs try each scenario and note the readout (5 min)', 'Close with one question from the list (2 min)'. Card 2 'Three discussion prompts': 'Which flow surprised you most, and why?', 'Why does a small one-way flow matter more than a big two-way one?', 'What would have to change to move the slider left?'. Card 3 'Print-friendly version': text 'A clean, one-column version with all steps, the ledger and all three curves.' and a button 'Print the story' with the Lucide Printer icon that calls window.print().
Layout: Three equal cards in a row (desktop), stacked on mobile, 24px gap. Card fill Dusk Violet at 40%, 1px border Mist 12%, radius 20px, padding 28px; each card has a 40px top icon tile in its flow color (Acid Lime, Glow Cyan, Molten Orange). A @media print stylesheet hides the header, slider and scene, shows every story step as plain text, renders the chart with all three scenario curves at once, and uses black text on white.
Motion: Cards fade up 24px with a 100ms stagger when entering (once).
8. **Sources note (#sources)** — Eyebrow 'ILLUSTRATIVE FIGURES'. Heading 'Where the numbers come from.' Paragraph: 'Every figure on this page is illustrative and rounded so the story stays readable. The values sit in the range reported by recent global carbon budget syntheses and international physical-science assessments, but none is copied from a single chart, and the curves are hand-drawn shapes, not model output. Check the latest published assessments before you cite a number.' List: 'Reservoir sizes: rounded to the nearest 100 or 1,000 Gt C.' 'Yearly flows: rounded to the nearest 10 Gt C, except the fossil flow.' 'Temperature curves: drawn to show direction and spread between futures.' 'Scenario names: plain labels written for this page, not official pathway names.' Credits line: 'Story by Mara Okafor · Illustration and code by Teo Lindqvist · Science review by Dr. Inés Carvalho · Version 1.3'. Correction note: 'Spotted an error? Tell us at [email protected]' (plain text, not a form).
Layout: Abyss background with grain, max-width 820px centered, 120px vertical padding. Mono eyebrow in Acid Lime, list with Lucide Info icons in Glow Cyan, credits in Lavender Gray 15px.
Motion: None beyond the shared fade-up.
9. **Footer** — Wordmark 'Lowtide Lab' and line 'Small studio, big systems. Illustrated explainers for classrooms and curious people.' Links back to '#story', '#scenarios', '#sources'. Bottom row: '© Lowtide Lab · Figures are illustrative' and, only if provided, the optional [CREDIT] link aligned right.
Layout: Abyss background, 1px top border Mist 10%, two columns desktop (wordmark + line left, links right), stacked on mobile, 64px vertical padding.
Motion: None.
## Assets
- image: No bitmap images. The whole scene, the horizon strip, the chart, the logo ring mark and the favicon are drawn in code as inline SVG built in TypeScript (scene.ts, scenario.ts) and public/favicon.svg. Grain comes from an SVG feTurbulence filter. Nothing is downloaded.
- icon: Lucide icons from the npm package 'lucide' (ISC): Wind, Trees, Waves, Layers, Flame, Thermometer, Info, ArrowDown, Printer, Plus, Minus. Imported individually and rendered with createIcons. List 'lucide (ISC), https://lucide.dev' in ASSETS.md.
- font: Self-hosted via Fontsource npm packages: @fontsource-variable/bricolage-grotesque (OFL-1.1), @fontsource/atkinson-hyperlegible weights 400 and 700 (OFL-1.1), @fontsource/jetbrains-mono weight 500 (OFL-1.1). List each in ASSETS.md with its license.
## Don'ts
- No backend: no server code, API routes, databases, auth, analytics, third-party APIs, and no forms that submit anywhere (the corrections address is plain text).
- No CDN script or link tags; every font, icon and script is bundled locally. Never load fonts from fonts.googleapis.com, fonts.gstatic.com or any other font CDN; use the Fontsource packages listed.
- Production build must be minified, with no source maps and no src/ files copied into dist/; vite base must be './' so all asset paths are relative.
- Internal links are in-page anchors (#story, #ledger, #scenarios, #sources) or point to ./index.html; never link to a bare directory.
- Keep dist/ under 20 MB; no bitmap images at all.
- Must work at 1440x900 and 390x844 with zero console errors and no horizontal scroll; the slider must be fully usable by touch and keyboard.
- Respect prefers-reduced-motion with the stepped static fallback described in Design.
- Do not reproduce any chart or diagram from a real report or textbook, and do not lay out carbon figures as a known published cycle diagram; all numbers are round illustrative values tagged Illustrative.
- No logos, seals or insignia of climate bodies, space agencies, universities, newsrooms or energy companies, and no brand logos of any kind.
- No RCP, SSP or other official scenario names or codes; the slider stops use only the plain labels from [SCENARIOS].
- No mascots, characters, or the signature illustration style of any known science video channel or scroll-story publication; keep the flat layered poster style described here.
- No copy, headlines or data labels taken from existing explainers; all text is the invented copy in this prompt or rewritten for new variable values.
- No real people's likeness (including scientists and activists), no recognizable landmarks and no real company facilities; the factory is a generic two-chimney block.
- No commercial fonts and no source code from restricted UI libraries (Aceternity UI, Tailwind Plus / Tailwind UI, purchased templates); build every effect from scratch.
- Do not add a framework (React, Vue, Svelte) or a CSS framework; the stack is Vite + vanilla TypeScript + vanilla CSS + GSAP.
- Do not mention VibeFather anywhere on the site except the optional [CREDIT] footer link.
- Keep every string and number in src/content.ts; when the variables change, rewrite all copy and data for the new topic instead of leaving carbon-specific text behind.
---
— Prompt by VibeFather · https://vibefather.ai/t/carbon-cycle-scroll-explainer · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 碳循环滚动讲解页
完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。
## 简介
由 [BRAND](一家小型独立科学讲解工作室)制作的单页图文滚动故事,主题为 [TOPIC]。一个大型代码绘制的 SVG 剖面图(天空、带森林和山脉的陆地、开阔海洋、带化石层的岩层)从第一帧起就在运动:发光的粒子沿曲线路径在四个储库([RESERVOIRS])之间流动,其速度和密度体现每个流量的大小([FLOWS])。当文字步骤滚动经过时,场景保持固定,镜头从一个储库平移到另一个储库并缩放。第四种由人类驱动的流动起初是一根细线,在工业时代逐渐变粗。随后是年度账目,然后是情景实验室:一个带三个档位的滑块([SCENARIOS]),可平滑重绘 [OUTCOME] 的曲线,更新大型读数并改变天空色调。每个数字都标注为“示意性”,结尾的来源说明解释了四舍五入的处理。
- 受众:高中和大学低年级课堂、有好奇心的成年读者,以及会链接或投影此页面的教师、博物馆教育工作者、非营利组织和新闻编辑室。
- 目标:让读者在大约四分钟的滚动中理解一个系统故事,让读者在结论被陈述之前先感受到失衡,并以一个交互(情景滑块)收尾,使不同未来之间的选择变得可感。次要目标:便于在课堂上重复使用(打印按钮、讨论提示)。
- 语气:平实、温暖且精确。短句、具体的整数、不危言耸听,也不拿主题开玩笑。海报般醒目的视觉,平静的文字。所有文案都按下述默认值撰写,并保存在 src/content.ts 中;如果变量发生变化,请重写每个标题、步骤、账目行、FAQ 回答和来源行,以适配新主题,并保持相同的长度和节奏。
## 技术栈
- 框架:Vite 5 + 原生 TypeScript
- 样式:原生 CSS
- 库:vite 5(MIT)、typescript 5(Apache-2.0)、gsap 3.12(核心 + ScrollTrigger)(GSAP 标准许可证(免费,允许商业使用))、lucide 0.4x(原生包)(ISC)、@fontsource-variable/bricolage-grotesque(OFL-1.1)、@fontsource/atkinson-hyperlegible(OFL-1.1)、@fontsource/jetbrains-mono(OFL-1.1)
- 构建:`npm run build` → `dist/` 中的静态文件。无后端、无服务器代码、无外部 API。
- 设置:
- 使用 Vite vanilla-ts 模板搭建脚手架;package.json 脚本:dev = vite,build = tsc && vite build,preview = vite preview。
- vite.config.ts:base './',build.outDir 'dist',build.sourcemap false,build.assetsInlineLimit 0。单一入口 index.html。
- 文件布局:src/main.ts(启动、字体、图标)、src/content.ts(页面上的每个字符串和数字,带类型)、src/scene.ts(构建内联 SVG 场景并暴露命名分组)、src/flows.ts(粒子时钟)、src/story.ts(ScrollTrigger 步骤和相机)、src/scenario.ts(滑块、曲线路径、读数、色调)、src/styles.css(令牌、布局、关键帧、减少动态效果和打印规则)。
- 在 main.ts 中导入 '@fontsource-variable/bricolage-grotesque'、'@fontsource/atkinson-hyperlegible/400.css'、'@fontsource/atkinson-hyperlegible/700.css'、'@fontsource/jetbrains-mono/500.css'。
- 注册 GSAP 一次:import { gsap } from 'gsap'; import { ScrollTrigger } from 'gsap/ScrollTrigger'; gsap.registerPlugin(ScrollTrigger)。
- 图标:仅从 'lucide' 导入所需图标,并在 DOM 构建后调用 createIcons({ icons: { Wind, Waves, Trees, Layers, Flame, Thermometer, Info, ArrowDown, Printer, Plus, Minus } });元素使用 data-lucide 属性。
- 在 TypeScript(scene.ts)中根据 content.ts 数据构建场景 SVG,并将其注入 #scene;不要将其作为外部图像发布。viewBox 原点 0 0 1600 1000,preserveAspectRatio 'xMidYMid slice'。
- 在 styles.css 的 :root 中将所有颜色定义为 CSS 自定义属性,并尽可能通过 fill='var(--name)' 从 SVG 引用相同的值。
- <title> 为 '[BRAND] · [TOPIC], explained'。Favicon:public/favicon.svg,一个 32x32 靛蓝(#160F3D)圆角方块,带有两个弯曲箭头形成一个环,一个酸橙绿(#C6FF3D),一个熔岩橙(#FF6A1A)。
- 将所有动态效果限制在 window.matchMedia('(prefers-reduced-motion: reduce)') 下;减少动态效果的路径在 Design > motion 中描述。
## 变量
- [BRAND] — 工作室或出版方名称(默认:“Lowtide Lab”)。即该解释性内容的发布者。用于页眉字标、标题和页脚。
- [TOPIC] — 故事所解释的系统(默认:“The carbon cycle”)。任何在四个储存库之间转移某一数量的系统。
- [RESERVOIRS] — 四个储存库,按故事顺序排列(默认:“Atmosphere, Land, Ocean, Fossil reserves”)。以逗号分隔,恰好四个。在场景中分别映射到天空、陆地、海洋和岩层。
- [FLOWS] — 四个流动,按故事顺序排列(默认:“Photosynthesis, Respiration and decay, Ocean exchange, Fossil fuel burning”)。以逗号分隔,恰好四个。最后一个是由人类驱动的流动,在工业时代阶段会变粗。
- [SCENARIOS] — 三个滑块档位,从最好到最差(默认:“Rapid cuts, Current path, High emissions”)。为自创的普通标签;绝不使用官方情景代码。
- [OUTCOME] — 情景曲线所展示的内容(默认:“Warming by 2100, in °C”)。情景曲线的 Y 轴标签和读数单位。
- [CREDIT] — 在页脚保留一个小型“Template by VibeFather”链接,指向 https://vibefather.ai/t/carbon-cycle-scroll-explainer(默认:是;删除此行即可移除)
“页面与区块”下的文案是按默认值撰写的。如果你的取值不同,请为它们重写每一个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便之后无需改动组件即可替换内容。
## 设计
### 颜色
- 夜靛蓝(Night Indigo)`#160F3D` — 页面背景、上层天空、卡片填充(在场景上以 90% 不透明度)
- 暮紫(Dusk Violet)`#3B1F7A` — 中层天空渐变停靠点、区块色带、滑块轨道
- 地平线余烬(Horizon Ember)`#FF8A3D` — 地平线上方的低空辉光带、太阳圆盘边缘
- 深青(Deep Teal)`#06535F` — 海洋表层、账本区块背景
- 深渊(Abyss)`#03252C` — 深海层、页脚背景
- 熔橙(Molten Orange)`#FF6A1A` — 人类驱动的流动(化石燃料燃烧)粒子和描边、主 CTA 填充、高排放曲线
- 酸橙(Acid Lime)`#C6FF3D` — 生物圈流动(光合作用)、滑块拇指、活动步骤标记、快速削减曲线、焦点环
- 辉青(Glow Cyan)`#5CE1E6` — 海洋交换粒子、链接、当前路径曲线
- 余烬粉(Ember Pink)`#FF3D7F` — 情景实验室中天空的变暖色调目标、净变化条上的警告高亮
- 森林(Forest)`#0E6B4A` — 山丘和树体(树木使用 Forest 配 Acid Lime 树冠)
- 地层锈(Strata Rust)`#7A3A1E` — 上层岩带
- 地层赭(Strata Umber)`#4A2418` — 中层岩带
- 煤黑(Coal Black)`#120B0A` — 化石层和下层岩带
- 薄雾(Mist)`#F3EEFF` — 深色背景上的正文和标题文字(在 Night Indigo 和 Deep Teal 上达到 AA+)
- 薰衣草灰(Lavender Gray)`#B9B0E0` — 次要文字、轴标签、说明文字(在 Night Indigo 上达到 AA)
### 排版
- 展示字体:主视觉标题、步骤标题、区块标题、大号读数。紧凑字距 -0.02em,主视觉行高 0.95,其他 1.05。:Bricolage Grotesque(可变字体)(OFL),字重 700/800
- 正文、卡片文案、FAQ、按钮。桌面 18px / 移动 17px,行高 1.55。:Atkinson Hyperlegible(OFL),字重 400/700
- 数字、存量标签、年份计数器、Illustrative 标签、轴刻度。标签使用大写并带 0.08em 字距。:JetBrains Mono(OFL),字重 500
### 布局与动效
- 间距:8px 基础网格。内容最大宽度 1200px,桌面侧边内边距 6vw,移动端间距 16px。区块间距为 160px(桌面)/ 96px(移动)。主视觉标题桌面 112px / 移动 52px(clamp(52px, 8vw, 112px));区块标题 clamp(36px, 5vw, 64px);步骤标题桌面 40px / 移动 28px。
- 圆角:卡片和步骤面板 20px;按钮和标签完全圆角(999px);滑块轨道 999px;账本条 6px。场景本身为全出血,无圆角。
- 动效:加载:场景从 Night Indigo 淡入,持续 600ms,然后主视觉标题行上升 24px 并以 90ms 交错淡入(power3.out,700ms)。粒子立即开始;没有静态首帧。
- 动效:粒子时钟:flows.ts 中的一个 requestAnimationFrame 循环驱动所有流动。每条流动是一个 SVG 路径,在初始化时通过 getPointAtLength 采样一次为 240 个点(Float32Array)。流动的每个粒子 i 位于 u = (time * speed + i / count) mod 1,绘制为半径 2.5 到 4px 的圆,带柔和辉光(流动组上应用 feGaussianBlur stdDeviation 2 滤镜)。count = clamp(round(value / 3), 3, 44);speed = 0.05 + value / 1500 周期每秒。每条引导路径也以 25% 不透明度、1.5px、虚线 2 6 描边。
- 动效:当故事区块完全离开屏幕(IntersectionObserver)且 document.hidden 为 true 时,循环暂停。
- 动效:相机:一个 GSAP 时间线沿故事轨道擦洗(scrub 0.6),通过每个步骤一个关键帧补间一个代理 {x, y, w, h},并在 onUpdate 中写入场景的 viewBox。关键帧列在故事区块中。
- 动效:步骤激活:每个步骤面板有一个 ScrollTrigger(start 'top 60%',end 'bottom 40%');活动面板不透明度为 1,非活动面板为 0.3;场景中的活动储库获得 3px Acid Lime 轮廓辉光,在 400ms 内淡入,其在储库仪表中的行高亮。
- 动效:工业时代:第二个擦洗补间在步骤 5 中驱动值 industry 从 0 到 1;化石燃烧流动的描边宽度从 1px 到 7px,其粒子数从 3 到 40,其速度 x3,年份计数器在 1850 到 2025 之间插值(四舍五入到整年)。
- 动效:计数器:步骤 6 中的大气存量随滚动计数 600 到 900(擦洗,整数,tabular-nums)。
- 动效:账本条在 900ms 内从 0 增长到其宽度(power2.out),当账本进入视口时以 120ms 交错(一次)。
- 动效:情景曲线:拖动滑块在每个输入事件中在两个相邻情景点数组之间插值投影路径;释放时拇指吸附到最近的停靠点,路径在 500ms 内补间到该情景(power2.inOut),使用相同的插值。读数数字随之补间;天空色调变量 --heat(三个停靠点分别为 0、0.45、1)同步补间。
- 动效:按钮:悬停上浮 2px 并增亮 8%;按下缩放 0.97。FAQ 项以 280ms 高度过渡展开,加号图标旋转 45 度。
- 动效:prefers-reduced-motion:无相机补间且无擦洗。每个步骤在变为活动时立即将 viewBox 吸附到其关键帧(阶梯式静态场景)。粒子不动画:每条流动绘制为静态虚线描边带箭头,宽度按值缩放。计数器显示其最终值。滑块立即更新曲线而不补间。加载淡入被移除。
- 图像:无照片且无位图图像。一切都在代码中绘制为扁平、分层的矢量形状,带有可见颗粒:一个 SVG feTurbulence(baseFrequency 0.9,numOctaves 2)噪声矩形覆盖整个场景,不透明度 9%,混合模式为 overlay,加上区块背景上的 CSS 颗粒叠加层,使用相同的 SVG 滤镜作为 data URL。形状为海报风格:粗犷剪影,无轮廓,每个对象最多三种色调,除天空和海洋深度外无渐变。图标为 Lucide 20px,描边 1.75,使用 Mist 或流动颜色。无吉祥物、无角色、无人物、无可识别地标或真实设施;工厂是一个带两个烟囱的通用方块。
## 页面与区块
### [BRAND] · [TOPIC],详解(`index.html`)
1. **页头(共享,固定)** — 左侧:字标 'Lowtide Lab',使用 Bricolage Grotesque 800,字号 20px,前面是一个 22px 的代码绘制环形标记(两条弯曲箭头,一条 Acid Lime,一条 Molten Orange)。中间(仅桌面端):锚点链接 'Story'、'Ledger'、'Scenarios'、'Sources',分别指向 #story、#ledger、#scenarios、#sources。右侧:一个带有 Lucide Info 图标的胶囊标签,等宽文本为 'ILLUSTRATIVE FIGURES',点击时滚动到 #sources。
布局:固定顶栏,高度 64px,全宽,两侧内边距 6vw(移动端 16px)。在首屏上方透明;滚动 80px 后,获得 Night Indigo 背景,不透明度 85%,底部有 1px 边框 rgba(198,255,61,0.18)。移动端中间链接隐藏,胶囊标签缩小为图标加 'ILLUSTRATIVE'。
动效:当越过滚动阈值时,背景在 200ms 内淡入。
2. **首屏 + 固定故事场景(#story)** — 场景在 scene.ts 中构建,画布 1600x1000:(1)天空 0-520:垂直渐变,从 Night Indigo(顶部)到 Dusk Violet(y 340)再到 Horizon Ember(y 515);一个低垂的太阳圆盘 r=70,位于 (1190, 470),颜色为 Molten Orange,带 Horizon Ember 边缘;三朵扁平云,颜色为 Dusk Violet 提亮 12%。(2)陆地,x 0-840:两个起伏的山丘剪影,颜色为 Forest 和更深的 Forest 色调;一条山脊位于 x 160 到 430 之间,峰值在 y 250,带 Mist 色山顶;18 棵三角形树木(Forest 树干,Acid Lime 树冠,高度 40-90px)分布在 x 440-760;一个小型通用工厂方块位于 (650, 470),带两个烟囱。(3)海洋,x 820-1600,y 520-770:表层带 Deep Teal,深层带 Abyss,四条细波浪线为 Glow Cyan,不透明度 30%,一个倾斜的海床。(4)岩层 y 770-1000,横跨全宽:条带为 Strata Rust、Strata Umber、Coal Black,带有五个黑色透镜状化石层和一个位于 (420, 900) 的圆形油藏。(5)流动路径(三次曲线):光合作用从天空 (500, 160) 向下进入森林树冠 (600, 440),Acid Lime;呼吸作用和分解从土壤 (560, 520) 回到天空 (420, 180),Acid Lime 不透明度 60%;海洋交换为两条平行弧线,位于天空 (1150, 200) 和海洋表面 (1250, 560) 之间,一条向下一条向上,Glow Cyan;化石燃料燃烧从油藏 (420, 900) 向上穿过工厂烟囱 (665, 430) 进入天空 (760, 140),Molten Orange。流量值(Gt C/年,示意性):120、120、每个方向 90,以及 1 上升到 10。(6)储库命中区域:每个储库使用不可见矩形用于活动轮廓。在场景上方,首屏文本(步骤 0):眉标为等宽字体 'AN ILLUSTRATED STORY · 4 MIN';标题 'Where the carbon goes.';副标题 'Follow one atom of carbon through sky, sea, soil and stone, then choose the century it lands in.';按钮 'Start the story'(Molten Orange 填充,Night Indigo 文字,Lucide ArrowDown)滚动到步骤 1,以及 'Jump to the scenarios'(轮廓,1.5px Mist 边框)滚动到 #scenarios。按钮下方,三个等宽胶囊标签:'4 RESERVOIRS'、'4 FLOWS'、'3 FUTURES'。
布局:该区块是一个 800svh 高的滚动轨道,包含一个粘性场景容器(position: sticky; top: 0; height: 100svh; 全宽),其中 SVG 宽度和高度均为 100%,以及一个包含七个步骤面板的覆盖列,随滚动覆盖在其上。首屏文本(步骤 0)位于左下角:left 6vw,bottom 12svh,max-width 640px,无面板背景,背后有 70% 的径向 Night Indigo 阴影,使文本保持 AA 对比度。移动端(<768px):粘性场景高度为 58svh,步骤在下方流动(不覆盖),因此面板在粘性场景下方向上滚动;首屏文本则位于场景下方的第一个面板中。
动效:步骤 0 的相机关键帧为完整画布(0 0 1600 1000)。粒子从加载时开始运行。当步骤 1 接近时,首屏文本淡出(不透明度到 0,y -30px)。
3. **故事步骤 1-6(位于 #story 内)** — 每个面板:带 Lucide 图标和储库的等宽标签、Bricolage 标题、2-3 句正文,以及一个小型 'ILLUSTRATIVE' 标签。步骤 1 大气(图标 Wind,标签 'ATMOSPHERE · ~900 GT C'):标题 'The smallest vault.' 正文 'Of the four places that hold carbon, the air holds the least. That is exactly why it is sensitive: add a little, and its share changes fast.' 步骤 2 陆地(图标 Trees,标签 'LAND · ~2,000 GT C IN PLANTS AND SOIL'):标题 'The forest breathes.' 正文 'Leaves pull about 120 billion tonnes of carbon out of the air each year. Roots, microbes and fires send about the same back. In, out, in, out, like a slow tide.' 步骤 3 海洋(图标 Waves,标签 'OCEAN · ~40,000 GT C'):标题 'The quiet giant.' 正文 'The ocean holds more carbon than everything else combined. Its surface trades about 90 billion tonnes with the air each year, and slow currents carry some of it down to water that will not see the sky for centuries.' 步骤 4 化石储库(图标 Layers,标签 'FOSSIL RESERVES · ~5,000 GT C'):标题 'The sealed basement.' 正文 'Coal, oil and gas are ancient plants and plankton, pressed for millions of years. Left alone, this vault leaks almost nothing: a thin thread from volcanoes and weathering rock.' 步骤 5 工业时代(图标 Flame,标签 'FOSSIL FUEL BURNING · 1 → 10 GT C / YR'):标题 'Then we opened it.' 正文 'Burning fuel now moves about 10 billion tonnes a year from rock to air. That is small next to the forest and ocean trades. The difference is that it only flows one way.' 外加一个大型等宽年份计数器 'YEAR 1850',运行到 'YEAR 2025'。步骤 6 失衡(图标 Thermometer,标签 'ATMOSPHERE · 600 → 900 GT C'):标题 'Half stays up.' 正文 'Land and ocean soak up about half of what we add. The rest stays in the air, and the air is the vault that sets the temperature.' 外加一个大气储库存量的大型计数器和一个按钮 'See where it leads',滚动到 #scenarios。储库仪表 HUD:四行(图标、储库名称、等宽存量、一个 120px 条形,按对数刻度缩放),活动行使用 Acid Lime。
布局:桌面端:面板宽 420px,left 6vw,每个位于自己的 100svh 槽位中,垂直居中;面板填充 Night Indigo 不透明度 90%,1px 边框 rgba(198,255,61,0.2),圆角 20px,内边距 28px。储库仪表 HUD 固定在粘性容器内,top 96px,right 6vw,宽 260px,面板样式相同;在步骤 0 期间隐藏。年份计数器和大气计数器在其面板内以 72px 的 JetBrains Mono 渲染。移动端:面板全宽减去 16px 边距,最小高度 70svh 槽位,HUD 隐藏,替换为每个面板标签下方的一行等宽存量。
动效:相机关键帧(x y w h):步骤 1 大气 300 0 1000 625;步骤 2 陆地 120 220 900 563;步骤 3 海洋 760 300 840 525;步骤 4 化石储库 120 375 1000 625(底边在 1000,岩层填充视图下半部分);步骤 5 拉出到 200 60 1300 813,使烟囱、油藏和天空都可见;步骤 6 完整画布 0 0 1600 1000。步骤 5 驱动工业值 0 到 1;步骤 6 驱动大气计数器并略微加深天空(天空渐变顶部向 Dusk Violet 过渡,20%)。
4. **年度账本(#ledger)** — 眉标 'THE YEARLY LEDGER'。标题 'Big trades, one leak.' 引言 'Each year carbon moves in four main streams. Three of them nearly balance. The fourth does not.' 四行:'Photosynthesis' Acid Lime 条形,'Air → land','120 Gt C / yr';'Respiration and decay' Acid Lime 60% 条形,'Land → air','120 Gt C / yr';'Ocean exchange' Glow Cyan 双条形,'Air ⇄ ocean','90 in · 90 out';'Fossil fuel burning' Molten Orange 条形,'Rock → air','10 Gt C / yr, one way'。下方,一个净行,带 Ember Pink 条形:'Net change in the air','+5 Gt C every year'。每个值都带有一个小型等宽 'ILLUSTRATIVE' 上标标签。
布局:全宽条带,Deep Teal 背景,带颗粒叠加。内容最大宽度 1200px:标题块在左侧 4 列,行在右侧 8 列(桌面端 12 列网格,24px 间距)。每行:图标、名称(Atkinson 700,20px)、Lavender Gray 的方向标签、一个 100% 宽度的条形轨道,条形宽度与值成比例(120 = 100%)、值以等宽字体右对齐。净行由 1px Mist 20% 分隔线隔开。移动端:单列,行按名称、条形、值堆叠。
动效:条形在首次进入视图时增长(见设计动效)。化石条形每 2.4s 脉冲发光(不透明度 0.7 到 1)。
5. **情景实验室(#scenarios)** — 眉题 'SCENARIO LAB'。标题 'Pick the century.'。引言 'Drag the slider to choose how fast emissions fall. Every curve starts from the same place: today.'。滑块带有三个带标签的停靠点 'Rapid cuts'、'Current path'、'High emissions',并在当前激活的停靠点下方显示一行描述:Rapid cuts 'Emissions halve by 2040 and reach near zero by 2060.';Current path 'Emissions plateau, then drift down slowly after 2050.';High emissions 'Emissions keep rising until late in the century.'。大号读数:'+2.5 °C'(默认停靠点 Current path),配说明文字 'Warming by 2100 compared with the late 1800s · illustrative'。每个停靠点的读数:+1.5、+2.5、+4.0。图表:x 轴 1850-2100,每 50 年一个刻度;y 轴 0 到 5 °C,每 1 °C 一条网格线;一条实线 Mist 历史曲线 1850-2025,从 0.0 上升到 1.3(手工设定点:1850 0.0、1875 0.0、1900 0.1、1925 0.2、1950 0.3、1975 0.4、2000 0.8、2025 1.3);一条垂直虚线 'Today' 标记位于 2025;以及一条 2025-2100 的预测路径,每 5 年一个点,共 16 个点。情景数组(2025 到 2100):Rapid cuts 1.3,1.38,1.45,1.5,1.53,1.55,1.56,1.56,1.56,1.55,1.55,1.54,1.53,1.52,1.51,1.5;Current path 1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0,2.1,2.2,2.25,2.3,2.35,2.4,2.45,2.5;High emissions 1.3,1.42,1.55,1.7,1.85,2.0,2.2,2.4,2.6,2.8,3.0,3.2,3.4,3.6,3.8,4.0。预测描边颜色随滑块在 Acid Lime → Glow Cyan → Molten Orange 之间插值,曲线下方有同色的柔和 18% 填充。图表旁边是一条地平线横条:场景天空、太阳、山丘和海洋的 16:5 裁剪(复用符号),其天空渐变随 --heat 上升向 Ember Pink 和 Molten Orange 过渡。
布局:Night Indigo 背景。桌面端两列(7/5):左侧是图表卡片(圆角 20px,Dusk Violet 35% 填充,内边距 32px,图表 SVG viewBox 0 0 800 400,响应式宽度),右侧是一组堆叠内容:读数(Bricolage 800,120px,颜色跟随曲线)、说明文字、停靠点描述和地平线横条(圆角 16px)。滑块横跨两列下方的整个内容宽度:10px 轨道为 Dusk Violet,已填充部分为曲线颜色,32px Acid Lime 滑块手柄带 4px Night Indigo 圆环,停靠点标签位于下方 0%、50%、100% 处,为可点击按钮。移动端:所有内容堆叠:读数、图表、滑块、描述、地平线横条;滑块手柄保持 32px 以便触摸。
动效:滑块是原生 input type range(min 0,max 100,step 1,默认 50),用 CSS 设置样式;位置 0-50 在 Rapid cuts→Current path 之间插值,50-100 在 Current path→High emissions 之间插值;change 时吸附;Left/Right 键移动 1,PageUp/PageDown 和点击停靠点标签在停靠点之间跳转。aria-valuetext 读作例如 'Current path, about 2.5 degrees of warming by 2100'。曲线路径每帧根据插值点重建为 Catmull-Rom 样条并转换为三次 Bezier 命令(张力 0.5),绝不使用插件做形变。
6. **快速问答** — 标题 'Quick questions'。四个手风琴项。'If plants absorb carbon, can we just plant trees?' → 'Trees help, but the forest trade is a loop: what grows also decays or burns. Planting adds a one-time store; it cannot keep up with a one-way flow from rock that runs every year.' 'Will the ocean fill up?' → 'Not fill, but slow down. Warmer water holds less gas, and the extra carbon makes seawater more acidic, which is hard on shells and reefs.' 'How long does added carbon stay in the air?' → 'A large share moves into land and ocean within decades. A smaller share stays for centuries, and some for many thousands of years.' 'Why are all the numbers rounded?' → 'So the story stays readable. The sizes and directions are right; the exact values change from year to year and between studies. See the sources note below.'
布局:最大宽度 820px 居中。每一项是一个全宽按钮行(Atkinson 700,20px,Mist),右侧带 Lucide Plus 图标,1px 底边框 Mist 15%,内边距 22px 0。答案文字 Lavender Gray 18px,最大 64ch。
动效:高度过渡 280ms,打开时图标旋转 45deg。一次只打开一项。
7. **课堂使用** — 眉题 'FOR TEACHERS'。标题 'Use it in class.'。三张卡片。卡片 1 '15-minute walkthrough':有序列表 'Scroll steps 1-4 together (5 min)'、'Pause on step 5 and ask what changed (3 min)'、'Let pairs try each scenario and note the readout (5 min)'、'Close with one question from the list (2 min)'。卡片 2 'Three discussion prompts':'Which flow surprised you most, and why?'、'Why does a small one-way flow matter more than a big two-way one?'、'What would have to change to move the slider left?'。卡片 3 'Print-friendly version':文字 'A clean, one-column version with all steps, the ledger and all three curves.' 和一个按钮 'Print the story',带 Lucide Printer 图标,调用 window.print()。
布局:桌面端三张等宽卡片一行排列,移动端堆叠,间距 24px。卡片填充 Dusk Violet 40%,1px 边框 Mist 12%,圆角 20px,内边距 28px;每张卡片顶部有一个 40px 图标块,使用其流程颜色(Acid Lime、Glow Cyan、Molten Orange)。@media print 样式表隐藏页头、滑块和场景,将每个故事步骤显示为纯文本,一次性渲染包含全部三条情景曲线的图表,并使用白底黑字。
动效:卡片进入时淡入上移 24px,100ms 交错(仅一次)。
8. **来源说明(#sources)** — 眉题 'ILLUSTRATIVE FIGURES'。标题 'Where the numbers come from.'。段落:'Every figure on this page is illustrative and rounded so the story stays readable. The values sit in the range reported by recent global carbon budget syntheses and international physical-science assessments, but none is copied from a single chart, and the curves are hand-drawn shapes, not model output. Check the latest published assessments before you cite a number.'。列表:'Reservoir sizes: rounded to the nearest 100 or 1,000 Gt C.' 'Yearly flows: rounded to the nearest 10 Gt C, except the fossil flow.' 'Temperature curves: drawn to show direction and spread between futures.' 'Scenario names: plain labels written for this page, not official pathway names.'。署名行:'Story by Mara Okafor · Illustration and code by Teo Lindqvist · Science review by Dr. Inés Carvalho · Version 1.3'。更正说明:'Spotted an error? Tell us at [email protected]'(纯文本,不是表单)。
布局:Abyss 背景带颗粒,最大宽度 820px 居中,垂直内边距 120px。等宽眉题用 Acid Lime,列表带 Lucide Info 图标用 Glow Cyan,署名用 Lavender Gray 15px。
动效:除共享的淡入上移外无其他动效。
9. **页脚** — 字标 'Lowtide Lab' 和一行文字 'Small studio, big systems. Illustrated explainers for classrooms and curious people.'。链接回 '#story'、'#scenarios'、'#sources'。底行:'© Lowtide Lab · Figures are illustrative',以及仅在提供时右对齐的可选 [CREDIT] 链接。
布局:Abyss 背景,1px 顶边框 Mist 10%,桌面端两列(字标 + 文字在左,链接在右),移动端堆叠,垂直内边距 64px。
动效:无。
## 资产
- 图像:不使用位图图像。整个场景、地平线条带、图表、标志圆环标记和 favicon 均以代码绘制,作为在 TypeScript 中构建的内联 SVG(scene.ts、scenario.ts)以及 public/favicon.svg。颗粒效果来自 SVG feTurbulence 滤镜。不下载任何内容。
- 图标:来自 npm 包 'lucide'(ISC)的 Lucide 图标:Wind、Trees、Waves、Layers、Flame、Thermometer、Info、ArrowDown、Printer、Plus、Minus。逐个导入并使用 createIcons 渲染。在 ASSETS.md 中列出 'lucide (ISC), https://lucide.dev'。
- 字体:通过 Fontsource npm 包自托管:@fontsource-variable/bricolage-grotesque(OFL-1.1)、@fontsource/atkinson-hyperlegible 字重 400 和 700(OFL-1.1)、@fontsource/jetbrains-mono 字重 500(OFL-1.1)。在 ASSETS.md 中逐项列出并注明其许可证。
## 禁止事项
- 无后端:没有服务器代码、API 路由、数据库、认证、分析、第三方 API,也没有任何会提交到某处的表单(更正地址为纯文本)。
- 不使用 CDN 脚本或链接标签;每个字体、图标和脚本都本地打包。绝不从 fonts.googleapis.com、fonts.gstatic.com 或任何其他字体 CDN 加载字体;使用列出的 Fontsource 包。
- 生产构建必须压缩,不生成 source map,不将 src/ 文件复制到 dist/;vite base 必须为 './',以便所有资源路径都是相对路径。
- 内部链接为页内锚点(#story、#ledger、#scenarios、#sources)或指向 ./index.html;绝不链接到裸目录。
- 保持 dist/ 在 20 MB 以下;完全不用位图图像。
- 必须在 1440x900 和 390x844 下正常工作,控制台零错误且无水平滚动;滑块必须完全可通过触摸和键盘使用。
- 遵循 prefers-reduced-motion,使用设计(Design)中描述的阶梯式静态回退方案。
- 不得复制任何真实报告或教科书中的图表或示意图,也不得将碳数据排布为已知的已发布循环图;所有数字均为标注为 Illustrative 的取整示意值。
- 不得出现气候机构、航天机构、大学、新闻编辑室或能源公司的标志、印章或徽章,也不得出现任何类型的品牌标志。
- 不使用 RCP、SSP 或其他官方情景名称或代码;滑块停靠点仅使用 [SCENARIOS] 中的纯标签。
- 不得出现吉祥物、角色,或任何已知科学视频频道或滚动叙事出版物的标志性插画风格;保持此处描述的扁平分层海报风格。
- 不得使用现有解释性内容中的文案、标题或数据标签;所有文本均为本提示词中虚构的文案,或针对新变量值重写。
- 不得出现真实人物肖像(包括科学家和活动人士)、可识别地标和真实公司设施;工厂为通用的双烟囱方块。
- 不使用商业字体,也不使用受限 UI 库(Aceternity UI、Tailwind Plus / Tailwind UI、购买的模板)的源代码;每个效果都从零构建。
- 不添加框架(React、Vue、Svelte)或 CSS 框架;技术栈为 Vite + 原生 TypeScript + 原生 CSS + GSAP。
- 除可选的 [CREDIT] 页脚链接外,网站上任何地方都不得提及 VibeFather。
- 将所有字符串和数字保留在 src/content.ts 中;当变量变化时,为新主题重写所有文案和数据,而不是留下碳专属文本。
---
— Prompt by VibeFather · https://vibefather.ai/t/carbon-cycle-scroll-explainer · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
个人项目可免费使用(CC BY-NC 4.0)。 商业用途需要 Pro.
DESIGN.md
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Carbon Cycle Scroll Explainer"
colors:
night_indigo: "#160F3D"
dusk_violet: "#3B1F7A"
horizon_ember: "#FF8A3D"
deep_teal: "#06535F"
abyss: "#03252C"
molten_orange: "#FF6A1A"
acid_lime: "#C6FF3D"
glow_cyan: "#5CE1E6"
ember_pink: "#FF3D7F"
forest: "#0E6B4A"
strata_rust: "#7A3A1E"
strata_umber: "#4A2418"
coal_black: "#120B0A"
mist: "#F3EEFF"
lavender_gray: "#B9B0E0"
typography:
display_hero_headline_step_titles_section_headings_big_readout_tight_tracking_0_02em_line_height_0_95_for_hero_1_05_for_others: { family: "Bricolage Grotesque (variable)", weights: [700, 800] }
body_text_card_copy_faq_buttons_18px_desktop_17px_mobile_line_height_1_55: { family: "Atkinson Hyperlegible", weights: [400, 700] }
numbers_stock_labels_year_counter_illustrative_tags_axis_ticks_uppercase_for_tags_with_0_08em_tracking: { family: "JetBrains Mono", weights: [500] }
spacing: "8px base grid. Content max-width 1200px with 6vw side padding on desktop and 16px gutters on mobile. Sections are separated by 160px (desktop) / 96px (mobile). Hero headline 112px desktop / 52px mobile (clamp(52px, 8vw, 112px)); section headings clamp(36px, 5vw, 64px); step titles 40px desktop / 28px mobile."
radius: "Cards and step panels 20px; buttons and chips fully rounded (999px); slider track 999px; ledger bars 6px. The scene itself is full-bleed with no radius."
---
# Carbon Cycle Scroll Explainer — Design System
Apply this design system to an existing project. It describes the look and feel only; for the full site, use prompt.md.
## Colors
- **Night Indigo** `#160F3D` — Page background, upper sky, card fill (at 90% opacity over the scene)
- **Dusk Violet** `#3B1F7A` — Mid sky gradient stop, section bands, slider track
- **Horizon Ember** `#FF8A3D` — Low sky glow band just above the horizon, sun disk rim
- **Deep Teal** `#06535F` — Ocean surface layer, ledger section background
- **Abyss** `#03252C` — Deep ocean layer, footer background
- **Molten Orange** `#FF6A1A` — Human-driven flow (fossil burning) particles and stroke, primary CTA fill, High-emissions curve
- **Acid Lime** `#C6FF3D` — Biosphere flows (photosynthesis), slider thumb, active step marker, Rapid-cuts curve, focus rings
- **Glow Cyan** `#5CE1E6` — Ocean exchange particles, links, Current-path curve
- **Ember Pink** `#FF3D7F` — Warming tint target for the sky in the scenario lab, warning highlight on the net-change bar
- **Forest** `#0E6B4A` — Hills and tree bodies (trees use Forest with Acid Lime tops)
- **Strata Rust** `#7A3A1E` — Upper rock band
- **Strata Umber** `#4A2418` — Middle rock band
- **Coal Black** `#120B0A` — Fossil seams and lower rock band
- **Mist** `#F3EEFF` — Body and heading text on dark grounds (AA+ on Night Indigo and Deep Teal)
- **Lavender Gray** `#B9B0E0` — Secondary text, axis labels, captions (AA on Night Indigo)
## Typography
- **Display: hero headline, step titles, section headings, big readout. Tight tracking -0.02em, line-height 0.95 for hero, 1.05 for others.** — Bricolage Grotesque (variable) (OFL), weights 700/800. Self-host the font files.
- **Body text, card copy, FAQ, buttons. 18px desktop / 17px mobile, line-height 1.55.** — Atkinson Hyperlegible (OFL), weights 400/700. Self-host the font files.
- **Numbers, stock labels, year counter, Illustrative tags, axis ticks. Uppercase for tags with 0.08em tracking.** — JetBrains Mono (OFL), weights 500. Self-host the font files.
## Spacing & shape
- Spacing: 8px base grid. Content max-width 1200px with 6vw side padding on desktop and 16px gutters on mobile. Sections are separated by 160px (desktop) / 96px (mobile). Hero headline 112px desktop / 52px mobile (clamp(52px, 8vw, 112px)); section headings clamp(36px, 5vw, 64px); step titles 40px desktop / 28px mobile.
- Radius: Cards and step panels 20px; buttons and chips fully rounded (999px); slider track 999px; ledger bars 6px. The scene itself is full-bleed with no radius.
## Motion
- Load: the scene fades in from Night Indigo over 600ms, then the hero headline lines rise 24px and fade in with a 90ms stagger (power3.out, 700ms). Particles start immediately; there is no static first frame.
- Particle clock: one requestAnimationFrame loop in flows.ts drives every flow. Each flow is an SVG path sampled once into 240 points (Float32Array, via getPointAtLength at init). Each particle i of a flow sits at u = (time * speed + i / count) mod 1 and is drawn as a circle of radius 2.5 to 4px with a soft glow (an feGaussianBlur stdDeviation 2 filter on the flow group). count = clamp(round(value / 3), 3, 44); speed = 0.05 + value / 1500 cycles per second. Every guide path is also stroked at 25% opacity, 1.5px, dash 2 6.
- The loop pauses when the story section is fully offscreen (IntersectionObserver) and when document.hidden is true.
- Camera: a GSAP timeline scrubbed across the story track (scrub 0.6) tweens a proxy {x, y, w, h} through one keyframe per step and writes it to the scene's viewBox in onUpdate. Keyframes are listed in the story section.
- Step activation: each step panel has a ScrollTrigger (start 'top 60%', end 'bottom 40%'); the active panel is opacity 1, inactive panels 0.3; the active reservoir in the scene gets a 3px Acid Lime outline glow that fades in over 400ms, and its row in the reservoir gauge highlights.
- Industrial era: a second scrubbed tween drives a value industry 0 to 1 across step 5; the fossil-burning flow's stroke width goes 1px to 7px, its particle count 3 to 40, its speed x3, and the year counter interpolates 1850 to 2025 (rounded to whole years).
- Counters: the atmosphere stock in step 6 counts 600 to 900 with the scroll (scrubbed, whole numbers, tabular-nums).
- Ledger bars grow from 0 to their width over 900ms (power2.out) with a 120ms stagger when the ledger enters the viewport (once).
- Scenario curve: dragging the slider interpolates the projection path between the two neighbouring scenario point arrays every input event; on release the thumb snaps to the nearest stop and the path tweens to that scenario over 500ms (power2.inOut) using the same interpolation. The readout number tweens with it; the sky tint variable --heat (0, 0.45, 1 for the three stops) tweens alongside.
- Buttons: hover lifts 2px and brightens 8%; press scales 0.97. FAQ items expand with a 280ms height transition and the plus icon rotates 45 degrees.
- prefers-reduced-motion: no camera tweens and no scrub. Each step snaps the viewBox to its keyframe instantly when it becomes active (stepped static scenes). Particles are not animated: each flow is drawn as a static dashed stroke with arrowheads, width scaled by value. Counters show their end values. Slider updates the curve instantly without tweening. Load fade-ins are removed.
## Imagery
No photographs and no bitmap images. Everything is drawn in code as flat, layered vector shapes with a visible grain: one SVG feTurbulence (baseFrequency 0.9, numOctaves 2) noise rect over the whole scene at 9% opacity with mix-blend-mode overlay, plus a CSS grain overlay on section backgrounds using the same SVG filter as a data URL. Shapes are poster-like: bold silhouettes, no outlines, at most three tones per object, no gradients except the sky and the ocean depth. Icons are Lucide at 20px, stroke 1.75, in Mist or the flow color. No mascots, no characters, no people, no recognizable landmarks or real facilities; the factory is a generic block with two chimneys.
## Tone
Plain, warm and exact. Short sentences, concrete round numbers, no alarmism and no jokes about the subject. Poster-bold visuals, calm text. Write all copy for the default values below and keep it in src/content.ts; if the variables change, rewrite every headline, step, ledger row, FAQ answer and sources line to fit the new topic with the same length and rhythm.
---
— Prompt by VibeFather · https://vibefather.ai/t/carbon-cycle-scroll-explainer · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 高中科学教研组:把 BRAND 设成你的学校,TOPIC 设成氮循环,并按教学大纲重命名四个 RESERVOIRS 和 FLOWS。
- 自然历史博物馆:保留碳循环故事,把 BRAND 设成博物馆,并用 SCENARIOS 档位来引出展览结尾给观众的问题。
- 气候非营利组织:把 OUTCOME 设成你选定的衡量指标,把账目行改写为你发布的数字,并给每个数字标注 Illustrative 和取整说明。
- 新闻编辑部图表组:把 BRAND 设成刊物名称,保留四个碳库,把文字步骤改写成适合专题报道的简短报道式图注。
碳循环滚动科普页:常见问题
滚动碳循环滚动科普页时,页面实际会展示什么?
碳循环滚动科普页是一个单页插画故事。一幅由代码绘制的天空、陆地、海洋和岩石剖面在滚动时保持固定,简短的文字步骤从旁经过,发光粒子在四个碳库之间移动,展示每年的流动量有多大。镜头从大气平移到森林、海洋和化石层,随后是逐年收支账目和情景滑块。
怎么用 AI 做一个碳循环滚动科普页?
复制本页的提示词,或者运行 npx vibefather add carbon-cycle-scroll-explainer,把 [BRAND]、[FLOWS]、[TOPIC]、[OUTCOME] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。