跳到正文
VibeFather
免费注册

用这个模板做的 2 个案例

同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。

关于这个模板

Scribbl 是一个完全用代码绘制出来的单页滚动讲解页。一个火柴人讲解员站在钉在横线纸上的索引卡旁边。随着访客滚动页面,六个场景逐一以笔画方式绘制出来:主体涂鸦、填充它的荧光笔涂抹、带弯曲箭头的标签,以及一个逐字母自动写出的对话气泡。默认内容用六个步骤讲解光合作用(阳光、叶片、水、二氧化碳、葡萄糖和氧气),然后在回顾图中把所有涂鸦汇总到一起,并附上完整方程式、一张简短的速查表和一只重新开始页面的手绘按钮。

它适合教师、科普创作者、教育科技产品,以及任何需要以亲切方式讲解流程的团队。产品引导、"工作原理"页面和内部培训都契合同样的"六步加回顾"结构。因为主题、六个关键部分、受众和讲解员姓名都是变量,所以一条提示词就能讲解一株植物、一次网络请求或一份食谱,而外观保持不变。

设计亮点包括:温暖的米白色纸张,带有淡蓝色横线和红色页边线;细腻的 SVG 颗粒;墨黑色马克笔笔触,通过 SVG 位移滤镜产生轻微抖动。场景处于活动状态时,线条还会轻轻"沸腾"。每个场景都有自己的荧光笔颜色。桌面端右侧边缘有一条带圈场景编号的虚线进度轨迹,移动端则沿底部排列。讲解员的手臂在不同姿势之间切换(指、思考、耸肩、托举、欢呼),并且人物会眨眼。

要改编它,只需修改变量并重写唯一内容文件中的文案。然后从内置的十二个涂鸦字形库中为每个场景选择一个字形。没有位图需要替换,字体是自托管的 OFL 字体,开启减少动态效果后,整个页面会以完整绘制且静止的状态显示。

模板提示词

在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。

# Hand-Drawn Scroll Explainer

Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.

## Brief
A single-page, scroll-driven explainer for [BRAND] that teaches how [TOPIC] works in six hand-drawn scenes plus a recap. An original stick-figure narrator called [NARRATOR_NAME] stands beside an index card taped to ruled paper. Scroll progress draws every SVG stroke (stroke-dashoffset scrubbed by GSAP ScrollTrigger). It draws the scene's doodle, a highlighter scribble fill, labels with curved arrows, and a speech bubble that writes itself letter by letter. The six scenes follow the six [KEY_PARTS] in order. A closing recap brings all six doodles together into one flow diagram with a hand-drawn CTA. Everything is drawn in code. There are no bitmaps.

- Audience: [AUDIENCE]. The visitor arrives curious and wants to understand a process in about three minutes without reading a textbook.
- Goal: Make the visitor understand [TOPIC] step by step, one idea per scene, and leave with the recap diagram in their head. The CTA invites them to replay the page or print the recap.
- Tone: Warm, playful and plain-spoken, like a friendly older sibling doodling in a notebook. Short sentences, one gentle joke per scene, no jargon unless a label explains it. All copy below is written for the default values. If any variable differs from its default, rewrite every headline, note, bubble, label and recap line to fit the new values, keeping the same lengths and structure. Keep all copy in src/content.ts.

## Stack
- Framework: Vite 5 + TypeScript (vanilla)
- Styling: Vanilla CSS
- Libraries: gsap (core + ScrollTrigger) (GSAP Standard License (free, commercial use allowed)), @fontsource/caveat-brush (OFL-1.1), @fontsource/patrick-hand (OFL-1.1), @fontsource/atkinson-hyperlegible (OFL-1.1), vite (MIT), typescript (Apache-2.0)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
  - Scaffold with: npm create vite@5 . -- --template vanilla-ts, then delete the starter counter.ts, the starter CSS and the starter SVGs.
  - Install: npm i gsap@3 @fontsource/caveat-brush @fontsource/patrick-hand @fontsource/atkinson-hyperlegible.
  - vite.config.ts: export defineConfig({ base: './', build: { outDir: 'dist', sourcemap: false, minify: true, assetsInlineLimit: 0 } }).
  - File layout: src/content.ts (variables + every piece of copy + the scenes array), src/glyphs.ts (the 12-glyph doodle library), src/narrator.ts (stick figure SVG + pose path data), src/draw.ts (stroke-draw helpers), src/scenes.ts (builds scene DOM and timelines), src/progress.ts (progress trail), src/recap.ts, src/main.ts, src/styles.css.
  - src/content.ts exports VARS = { BRAND, TOPIC, AUDIENCE, KEY_PARTS, NARRATOR_NAME } and a typed scenes array: { id: 1-6, part: string, glyph: GlyphKey, glyphText?: string[], accent: string, title: string, note: string, bubble: string, labels: [{ text, corner: 'tl'|'tr'|'bl'|'br' }, { text, corner }], pose: PoseKey }, plus intro, recap, cheatSheet and footer copy objects. The DOM is built from this file at startup. No copy is hard-coded in index.html.
  - In src/main.ts import '@fontsource/caveat-brush/400.css', '@fontsource/patrick-hand/400.css', '@fontsource/atkinson-hyperlegible/400.css' and '@fontsource/atkinson-hyperlegible/700.css', then import './styles.css'.
  - gsap.registerPlugin(ScrollTrigger). Use gsap.matchMedia() with three conditions: desktop '(min-width: 900px) and (prefers-reduced-motion: no-preference)', mobile '(max-width: 899px) and (prefers-reduced-motion: no-preference)', reduce '(prefers-reduced-motion: reduce)'.
  - draw.ts: prepStroke(path) reads path.getTotalLength(), sets style.strokeDasharray = length and style.strokeDashoffset = length. drawTo(tl, paths, start, dur) adds a tween of strokeDashoffset to 0 with ease 'none', staggered evenly across the paths. Never use the DrawSVG plugin.
  - Call ScrollTrigger.refresh() after document.fonts.ready resolves, and again on a debounced (200 ms) resize.
  - All CSS custom properties (colours, fonts, spacing) live in :root in src/styles.css. All CSS @keyframes (scroll-cue wiggle, wave, blink fallback) also live at the bottom of src/styles.css.
  - index.html: <title>[BRAND] — How [TOPIC] works</title>, <link rel='icon' href='./favicon.svg'>. public/favicon.svg is a 32×32 ink circle scribble with a yellow #FFD84D dot inside.
  - Add a print stylesheet (@media print) that hides the top bar, progress trail, intro and scenes 1–6 and prints only the recap and cheat sheet on white.
  - Write ASSETS.md at the project root listing the three Fontsource font packages (OFL-1.1, source npm) and stating that every illustration is original inline SVG drawn in code.

## Variables
- [BRAND] — Brand / publisher name (default: "Scrawlhouse"). Invented studio or product that publishes the explainer
- [TOPIC] — Process being explained (default: "Photosynthesis"). Any process that splits cleanly into six steps
- [AUDIENCE] — Who it's for (default: "curious kids aged 9–13 and the grown-ups who get asked “but how?”")
- [KEY_PARTS] — Six key parts, in scene order (default: "Sunlight, Leaf, Water, Carbon dioxide, Glucose, Oxygen"). Exactly six, comma-separated. Each becomes one scene. Pick a glyph for each from the glyph library.
- [NARRATOR_NAME] — Narrator's name (default: "Pip")
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/hand-drawn-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.

Pro 模板

解锁完整提示词和源码

  • 完整提示词:设计、版块、动效、素材
  • 每个在线演示的源码
  • 商用授权

在线演示和 DESIGN.md 仍然免费。

$9/月起 · 年付和终身正在上线特惠

DESIGN.md

单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。

---
name: "Hand-Drawn Scroll Explainer"
colors:
  paper: "#F6F0E2"
  card: "#FFFDF6"
  paper_shade: "#ECE3CF"
  rule_blue: "rgba(116,160,200,0.20)"
  margin_red: "rgba(214,104,104,0.38)"
  ink: "#1E1B18"
  ink_soft: "#5A534A"
  tape: "rgba(255,232,160,0.72)"
  sun_yellow: "#FFD84D"
  leaf_green: "#8BD96B"
  water_blue: "#74C7F2"
  air_lilac: "#C3A8F5"
  sugar_orange: "#FFB35C"
  breath_mint: "#7FE0C8"
typography:
  display_h1_scene_titles_recap_title_button_labels: { family: "Caveat Brush", weights: [400] }
  handwriting_speech_bubbles_svg_labels_kickers_progress_numbers_scroll_cue: { family: "Patrick Hand", weights: [400] }
  text_intro_lede_scene_notes_cheat_sheet_footer: { family: "Atkinson Hyperlegible", weights: [400, 700] }
spacing: "8px base unit. Content container max-width 1240px, side padding 48px desktop / 20px mobile, centred. Desktop scenes use a 12-column grid with 32px gaps. Type scale: H1 clamp(56px, 8vw, 120px) line-height 0.95. Scene title clamp(40px, 5vw, 72px) line-height 1. Kicker 20px. Bubble 22px desktop / 18px mobile, line-height 1.25. Notes 18px / 16px, line-height 1.5, max-width 34ch. SVG labels 24 user units in the 600×600 viewBox."
radius: "No geometric corners. Hand-drawn shapes use the irregular CSS radius 255px 15px 225px 15px / 15px 225px 15px 255px (buttons, progress pill). Cards are square-cornered paper rotated slightly. Bubbles are SVG paths, not CSS boxes."
---

# Hand-Drawn 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
- **Paper** `#F6F0E2` — Page background
- **Card** `#FFFDF6` — Index-card drawing panels, speech bubble fill, progress pill fill on mobile
- **Paper shade** `#ECE3CF` — Card drop shadow tint, footer band, cheat-sheet number circles
- **Rule blue** `rgba(116,160,200,0.20)` — Horizontal ruled lines every 32px across the page
- **Margin red** `rgba(214,104,104,0.38)` — Single vertical margin line at left:72px desktop / 18px mobile
- **Ink** `#1E1B18` — All strokes, headings, body text, button borders
- **Ink soft** `#5A534A` — Kickers, notes, label text, faint progress trail (at 30% opacity)
- **Tape** `rgba(255,232,160,0.72)` — Translucent tape strips on card corners
- **Sun yellow** `#FFD84D` — Scene 1 accent, primary CTA fill, intro highlighter
- **Leaf green** `#8BD96B` — Scene 2 accent, intro “(drawn by hand)” highlighter
- **Water blue** `#74C7F2` — Scene 3 accent
- **Air lilac** `#C3A8F5` — Scene 4 accent
- **Sugar orange** `#FFB35C` — Scene 5 accent
- **Breath mint** `#7FE0C8` — Scene 6 accent

## Typography
- **Display: H1, scene titles, recap title, button labels** — Caveat Brush (OFL), weights 400. Self-host the font files.
- **Handwriting: speech bubbles, SVG labels, kickers, progress numbers, scroll cue** — Patrick Hand (OFL), weights 400. Self-host the font files.
- **Text: intro lede, scene notes, cheat sheet, footer** — Atkinson Hyperlegible (OFL), weights 400/700. Self-host the font files.

## Spacing & shape
- Spacing: 8px base unit. Content container max-width 1240px, side padding 48px desktop / 20px mobile, centred. Desktop scenes use a 12-column grid with 32px gaps. Type scale: H1 clamp(56px, 8vw, 120px) line-height 0.95. Scene title clamp(40px, 5vw, 72px) line-height 1. Kicker 20px. Bubble 22px desktop / 18px mobile, line-height 1.25. Notes 18px / 16px, line-height 1.5, max-width 34ch. SVG labels 24 user units in the 600×600 viewBox.
- Radius: No geometric corners. Hand-drawn shapes use the irregular CSS radius 255px 15px 225px 15px / 15px 225px 15px 255px (buttons, progress pill). Cards are square-cornered paper rotated slightly. Bubbles are SVG paths, not CSS boxes.

## Motion
- Stroke drawing: every ink path uses stroke-dashoffset from its full length to 0, scrubbed by ScrollTrigger (scrub: 0.6) inside pinned scenes. Ease 'none' while scrubbed.
- Pinned scenes: each scene section is pinned for end '+=150%' on desktop and '+=110%' on mobile, with one gsap.timeline of total duration 1 mapped to the pin.
- Marker wobble: all drawing SVGs use filter url(#wobble-0), an feTurbulence (type turbulence, baseFrequency 0.03, numOctaves 2, seed 1) feeding an feDisplacementMap (scale 3). Two more filters, #wobble-1 (seed 2) and #wobble-2 (seed 3), exist so the active scene's drawing group can cycle 0→1→2 every 140 ms (setInterval started onToggle active, cleared when inactive). This is the 'line boil'.
- Highlighter: a zigzag stroke (width 22, accent colour, opacity 0.85, mix-blend-mode multiply) clipped to the glyph's fill shape and drawn with the same dashoffset technique, beneath the ink strokes.
- Speech bubbles: the SVG bubble outline draws first. Then the text, split into one span per character, reveals with opacity 0→1 and y 4px→0 via a staggered scrubbed tween (typewriter feel).
- Narrator: arm paths morph between poses by tweening attr:{ d } (all arm paths share the identical 'M x y Q cx cy x y' structure) over 0.08 of the scene timeline. The idle body bobs y ±2px (yoyo, 1.6 s, sine.inOut, infinite). Eyes blink (scaleY 1→0.1→1, 120 ms) every 3.8 s on a gsap delayedCall loop. The wave pose wiggles the hand arm rotate ±12° three times when the intro loads.
- Title highlighter swipe: a rotated (-1.5deg) accent-coloured block behind each scene title scales X from 0 to 1 (transform-origin left) at the start of the scene timeline.
- Buttons: hover rotates -1deg and translates (-2px, -2px) while the 4px 4px 0 ink shadow grows to 6px 6px. Active presses to translate(2px, 2px) with a 2px shadow. 150 ms ease-out. On hover an SVG scribble ellipse around the button draws in 350 ms.
- Recap plays once (not scrubbed) when its top reaches 70% of the viewport: a 2.4 s timeline that draws the flow path, then each glyph in 0.25 s sequence, then arrows, then the equation characters. The narrator cheers with a y -12px jump twice.
- prefers-reduced-motion: reduce → no pinning, no scrub, no line boil, no bob, no blink, no typewriter. Every stroke renders fully drawn (dashoffset 0), every bubble shows its full text, and sections flow normally with 120px vertical gaps. The progress trail still updates its active number.

## Imagery
Only code-drawn inline SVG in marker style: round caps and joins, ink stroke width 3.5 in a 600×600 viewBox (2.5 for small details), fill none, slightly irregular hand-placed bezier curves (never perfect circles from <circle>, use 4-segment cubic paths with ±3 unit jitter baked into the coordinates). One highlighter accent per scene. The paper texture is pure CSS: repeating-linear-gradient rules every 32px, a margin line, and a fixed full-viewport grain overlay made from an inline SVG data-URI with feTurbulence fractalNoise (baseFrequency 0.9, numOctaves 3), opacity 0.35, mix-blend-mode multiply, pointer-events none. The narrator is an original, minimal stick figure distinguished only by a three-stroke cowlick.

## Tone
Warm, playful and plain-spoken, like a friendly older sibling doodling in a notebook. Short sentences, one gentle joke per scene, no jargon unless a label explains it. All copy below is written for the default values. If any variable differs from its default, rewrite every headline, note, bubble, label and recap line to fit the new values, keeping the same lengths and structure. Keep all copy in src/content.ts.

---
— Prompt by VibeFather · https://vibefather.ai/t/hand-drawn-scroll-explainer · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown

改成你自己的

  • 科普创作者讲解疫苗如何起作用:把 TOPIC 设为免疫反应,将六个 KEY_PARTS 命名为其阶段,并让讲解员保持亲切、通俗。
  • 教育科技产品教用户上手:把 BRAND 设为你的产品,把 TOPIC 设为你的设置流程,并把六个场景改写为新用户要走的步骤。
  • 烹饪学校讲解一种技法:把 TOPIC 设为面包发酵,选择六个 KEY_PARTS,例如面粉、水、酵母和时间,并把速查表换成你的关键配比。
  • 内部培训团队讲解公司流程:把 AUDIENCE 设为新员工,把 TOPIC 设为你的申请流程,并把回顾图用作他们留存的一页纸摘要。

手绘滚动讲解页:常见问题

如何把主题从光合作用换成其他内容?

手绘滚动讲解页模板把主题放在单个内容文件中,因此你设置 TOPIC 变量,重写六个场景的标题、注释、标签和对话气泡,并从十二个字形库中为每个场景挑选一个涂鸦。结构保持六幕加回顾,所以你讲解的流程必须能干净地拆成六个部分。

怎么用 AI 做一个手绘滚动讲解页?

复制本页的完整提示词(Pro),或者运行 npx vibefather add hand-drawn-scroll-explainer,把 [BRAND]、[TOPIC]、[AUDIENCE]、[KEY_PARTS] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。