diff --git a/docs/prompting/code-blocks.mdx b/docs/prompting/code-blocks.mdx index 16235713b5..acddc04d3a 100644 --- a/docs/prompting/code-blocks.mdx +++ b/docs/prompting/code-blocks.mdx @@ -85,6 +85,9 @@ For "here's what changed," hand `code-diff` the before and after and let it colo > /motion-graphics 6-second 1920x1080 video. Scroll a ~60-line source file so line 44 (`return dedupeFrames(frames)`) arrives at center and gets spotlighted; ease the scroll and let it settle without snapping. Use the `code-scroll` registry block. No audio. + +*Rendered from the prompt above, unedited.* + **Ask the scroll to ease and settle, not snap.** A linear scroll that stops dead reads mechanical. - ❌ `scroll straight to the line` - ✅ `ease the scroll and let it settle` — pair with the [motion grammar](/prompting/motion) diff --git a/docs/prompting/data-and-maps.mdx b/docs/prompting/data-and-maps.mdx index 7f0e5fdb2f..eaf83b4023 100644 --- a/docs/prompting/data-and-maps.mdx +++ b/docs/prompting/data-and-maps.mdx @@ -16,7 +16,7 @@ There are two ways to get a chart, and the choice is about control: Feed data inline or as a file. Small series go straight in the prompt; a CSV gets referenced and parsed at build time (keep it deterministic — no [render-time fetches](/concepts/determinism)). -> /motion-graphics 12-second 1920x1080 video. Turn this into an animated bar chart with a staggered reveal and value labels counting up on each bar: +> /motion-graphics 12-second 1920x1080 video. Title "Most-used languages" with the subtitle "share of respondents, 2026 survey". Turn this into an animated bar chart with a staggered reveal and value labels counting up on each bar, each label suffixed `%`: > ``` > Python 41, TypeScript 33, Rust 19, Go 14, Java 9 > ``` diff --git a/docs/prompting/vfx-and-liquid-glass.mdx b/docs/prompting/vfx-and-liquid-glass.mdx index 868da60238..3a6b36f88a 100644 --- a/docs/prompting/vfx-and-liquid-glass.mdx +++ b/docs/prompting/vfx-and-liquid-glass.mdx @@ -34,7 +34,16 @@ The liquid-glass blocks are frosted-glass Apple-style UI floating over an aurora The four `liquid-glass-*` panel blocks share the aurora-shader stage, so they compose cleanly into one scene; `ios26-liquid-glass` and `macos-tahoe-liquid-glass` are complete device environments and generally stand alone. -> /motion-graphics 8-second 1920x1080 video. Frosted glass notification cards drift in and stack over an aurora shader background, each reading a fake alert ("Build passed", "Deploy live", "0 incidents"). Use the `liquid-glass-notification` registry block. No audio. +> /motion-graphics 8-second 1920x1080 video. Frosted glass notification cards drift in and stack over an aurora shader background, each reading a fake alert ("Build passed", "Deploy live", "0 incidents"). Real translucency — the aurora must be visible through each card. Smoke the glass enough to keep white text above 3:1 against the brightest part of the aurora. No audio. + + +*Rendered from the prompt above, unedited — CSS `backdrop-filter` glass over a Three.js aurora.* + + + **The `liquid-glass-notification` block needs a GPU and fails quietly without one.** It is marked `stability: experimental` and tagged `webgpu` because its frosted surface is painted through `drawElementImage` with refraction computed by a WebGPU renderer. Validating this chapter, `navigator.gpu.requestAdapter()` returned `null` in every headless and headful Chrome tried — with `--enable-unsafe-webgpu`, `--use-angle=metal`, and hardware GPU mode — and the block's init simply bails. The failure mode is not an error: you get **no cards at all**, just the text floating on the background. + + So for a render you need to be able to reproduce, ask for the *effect* — "real translucency, the background visible through the card" — and let the agent build it with CSS `backdrop-filter`, which renders anywhere. That's what the video above is. Reach for the WebGPU block only when you have confirmed a working adapter in your render environment and you specifically want refraction, specular, and chromatic aberration, which CSS cannot do. + **"Liquid glass" means the block, not a filter you're describing.** These are complete WebGL stages; asking for "a glassy blur on my div" gets you a CSS `backdrop-filter`, not this look. - ❌ `add a liquid glass effect over my text`