Video with Gemini Neon
Neon builds handsome scenes and then fills them with small text nobody can read while it moves. A video is read once, at the speed it plays, often on a phone. Every rule below serves that reader.
1. Plan before code
Write the plan first and show it in your answer:
- One sentence: what the viewer knows or feels at the end.
- Beats: one idea per beat, each at least 3 seconds (a 20-second video has at most 6). Cover every step the topic needs and open with a short title beat. Group steps only when there are more than fit.
- Per beat: time range, the one headline, at most one supporting line, the visual that carries the idea, and how it enters.
2. Legibility rules (1920 by 1080)
These are the numbers that decide whether the video works. Neon breaks them when left alone.
| Element | Minimum |
|---|---|
| Headline | 88px (title beat 120px) |
| Supporting line, labels, numbers in a diagram | 36px |
| Anything at all on screen | 28px |
| Words on screen at one time | 20 |
| Time a line stays fully visible | words / 3 + 1 seconds |
- Scale the numbers with the canvas: at 1080 by 1920 (vertical) use the same pixel sizes; at 1280 by 720 multiply by 0.67.
- No paragraphs, no card with a title plus a description plus a tag. One line of text beside a picture beats three cards.
- Text sits on a flat area with 4.5:1 contrast, never on top of moving shapes.
- Keep 96px clear at every edge. Players and phones crop.
- Fill the stage. The picture that carries each beat spans at least half the stage's width or height; no beat is a small box floating in empty space. Make it rich: drawn objects with real detail (a dome with columns, a document with a seal), not gray placeholder lines.
- No em or en dashes and no emoji in on-screen text.
- A progress bar or step tracker is fine if its labels are 28px or larger; otherwise use numbers only, or leave it out.
3. Motion rules
- Entrances 400 to 700 ms with ease-out (
cubic-bezier(.2,.8,.2,1)); exits 250 to 400 ms with ease-in. Never linear, except for a progress bar. - No empty frames. Overlap each transition: the next beat starts entering before the last one has fully left, or the background and frame stay put while only the content changes. Sample every 0.25 s across each transition and confirm text or a picture is always on screen.
- Stagger items in a group by 80 to 150 ms. Move things 24 to 60px, not across the screen.
- Only one thing moves while the viewer reads. Idle loops (floating, pulsing, particles) stop or slow to near zero during reading time.
- Each beat ends on a still frame held at least 1 second before the next transition. The last beat holds 2 seconds.
- Animate meaning: a vote counter fills, a document moves from one desk to the next, a stamp lands. Decoration that moves teaches nothing.
4. Build: one clock, seekable
Drive the whole video from one time value so it plays the same every time and can be rendered frame by frame:
const DUR = 20; // seconds
let t0 = performance.now();
function render(t) { /* set every element's style from t alone */ }
function frame(now) { const t = Math.min((now - t0) / 1000, DUR); render(t); if (t < DUR) requestAnimationFrame(frame); }
window.seek = (t) => { render(t); }; // lets a recorder capture any instant
const q = new URLSearchParams(location.search).get('t');
q ? render(+q) : requestAnimationFrame(frame);
render(t)computes positions and opacity fromtwith small easing helpers. Avoid CSS animations andsetTimeoutchains: they drift and can't be seeked.- Fix the stage at 1920 by 1080 and scale it to the window with one
transform: scale()so every pixel size above stays true. - One file, no network: inline SVG for art, system fonts or one embedded font.
- Remotion: same rules; use
useCurrentFrame()andinterpolate()withextrapolateRight: 'clamp',fps30, sizes in the table above. - FFmpeg captions:
fontsize48 or more at 1080p,borderw=3, bottom margin 96.
5. Generated video (Veo and other models)
- A numbered shot list first: length, shot size and camera, one action, light, sound. Use only clip lengths the model offers, and make the shots add up to the length asked for.
- For a historical, scientific or technical subject, add an accuracy table before the prompts: detail, choice, why (with the dated fact behind it, such as the edict, the year a symbol came into use, the period's armor). Every choice in the table then appears in the prompts.
- A continuity line for each recurring person, place and light ("a gray-haired man in a brown canvas jacket, left hand bandaged"), pasted word for word into every shot that shows them.
- Vary shot size between cuts (wide, medium, close). One action per shot.
- Describe what is in frame in plain sentences; no quality words ("cinematic", "8k", "epic"). Name the light source and the palette.
- No text inside generated video. Add titles in an edit.
- Put each shot's prompt in its own code block so it copies cleanly. The prompts carry the detail; keep table cells under 15 words and the whole answer under 1,400 words.
- End with what to check in each take (hands, faces, continuity, anachronisms, stray lettering), and say plainly that you have not seen the results until the user shares them.
6. Check before you return it
If you can run code, render frames at the start, middle and end of each beat
(?t= makes this exact) and look at them. If you can't, read your own source
for these:
- Search the file for
font-size: no value under 28px on the 1920 stage. - Count the words visible in each beat: 20 or fewer.
- Every line stays fully visible for words / 3 + 1 seconds.
- No em dash (U+2014), en dash (U+2013) or emoji in visible text.
- The video plays from
t = 0to the end with no console errors and ends on a held frame. - Every fact on screen is right (dates, counts, names, the order of steps).
Say in your answer which checks you ran and which you could only read for.