Logo Reveal
Turn a flat logo into a 10-12 second animated reveal with sound, built as one HTML file that can be previewed in any browser and exported to a frame-accurate MP4.
The idea in one paragraph
Everything is a pure function of time. render(t) draws the picture at time t; the same physics (easing, springs, gravity bounces) also tell the sound code exactly when things hit. Nothing depends on a real-time clock, so the result is reproducible, can be rendered frame by frame at 60 or 90 fps, and the sound cannot drift away from the picture. Most "my sound is late / too loud / does not match" problems come from breaking this rule, so keep it.
What you need from the user
Ask for what is missing in one short message, not one question at a time. Many users are beginners: explain any term you use in half a sentence.
| Input | Needed? | Notes |
|---|---|---|
| Logo image (PNG / SVG / JPG) | yes | Flat shapes in 1-2 colours work best. If it is a photo or a gradient, say you will simplify it. |
| Motion reference video for the logo | yes, at least 1 | Any short clip with the kind of motion they like (liquid blobs, pop-ins, draw-on lines...). |
| Motion reference video for the text | yes, at least 1 | Can be the same video. |
| Style image | optional | A second image whose look (palette, corner radius, stroke weight, mood) should be copied onto the logo. |
| Brand text and tagline | if the logo has any | Spelled exactly as it must appear. |
| Output format | default | Square 1080x1080 and vertical 1080x1920, 60 fps. |
| End state | default | Ends and holds on the logo. Loop with "draw back in" outro only if asked. |
Why a reference video is mandatory: without one, motion collapses into generic ease-in/ease-out that looks like every template. If the user has none, say so plainly, suggest search terms ("metaball logo reveal", "liquid logo animation", "kinetic typography bounce"), and wait. Never ship someone else's video or frames in the result; references are for studying timing and character, not for copying artwork.
Workflow
Follow the stages in order. Each ends with a gate: do not move on until it passes. Full detail with checklists: references/workflow.md.
- Intake - collect the inputs above. Gate: you can name the logo's shapes, colours, text and target formats.
- Analyse references - run
scripts/analyze_reference.pyon each video, look at the contact sheet, write 5-8 lines of "motion notes" (what enters, how it moves, how it settles, rhythm). Readreferences/reference-analysis.md. Gate: you can describe the motion without saying "nice" or "smooth". - Vectorise the logo - rebuild the logo as SVG paths (Bezier curves) in a
viewBoxyou control. Never animate the raster image. If a style image was given, apply its palette / radius / stroke weight here. Gate: your SVG, overlaid on the original, matches within a few pixels. - Build the picture - start from
assets/reference-reveal.html, keep its structure, replace the logo-specific parts listed inreferences/adaptation-map.md, and tune motion usingreferences/motion-recipes.md. Gate: snapshots at 6-8 timestamps look right (use the exporter's--snapshots). - Picture lock - freeze all timings. Put every timing constant in one place; sound is derived from them. Gate: the user (or you) says the picture is final.
- Add sound - synthesise it with Web Audio, derived from the motion. Read
references/sound-design.mdbefore writing any audio code. Gate: every visual event in the sound map has a cue andverify_mp4.pyis clean. - QA and export - run the checks in
references/troubleshooting.md, then export with thehtml-to-videoskill.
Do the sound after the picture is locked. Sound written against moving timings is the main reason first attempts come out late, loud or mismatched.
Build rules (and why)
- One file, no external assets. Draw letters as round-capped strokes instead of loading a font, embed everything inline. A single file previews anywhere and exports reproducibly.
- Deterministic. No
Date.now(), no unseededMath.random(), nosetTimeoutchoreography, no CSS animations thatrender(t)does not control. Use a seeded hash for variety. The exporter callsrender(t)for arbitrarytand expects identical output every time. - Time-based, never frame-based. Express everything in milliseconds so 30, 60 and 90 fps all look the same.
- Stateful physics is precomputed. A spring that chases a moving target depends on its past. Simulate it at a fixed 240 Hz into a lookup table once, then
render(t)only reads the table (seereferences/motion-recipes.md). - Sound comes from the same numbers as the picture. Impact times from
drop()/hits(), pan from X position, loudness from impact speed. - Expose the contract. The page must offer
window.__motion = { duration, render, audio, staticRanges }, or keep the reference template's globals. See../html-to-video/references/contract.md. - Respect the viewer. Add
aria-labelon the SVG, honourprefers-reduced-motion(render the final frame), and never autoplay sound before a user gesture in the live page. - Loudness budget. Normalise the master to about -1 dBFS peak, glue with a compressor, and check the result with
verify_mp4.py.
Files in this skill
| File | Read it when |
|---|---|
references/workflow.md | You start a project, or need the exact gate checklist for a stage. |
references/reference-analysis.md | You have reference videos or a style image to study. |
references/adaptation-map.md | You adapt the template to a new logo (which identifiers to change). |
references/motion-recipes.md | You need an easing, spring, bounce, goo/metaball, letter-drop or star-twinkle recipe. |
references/sound-design.md | You write or fix any sound. Always read before writing audio code. |
references/troubleshooting.md | Something is late, loud, blank, blurry or will not export. |
scripts/analyze_reference.py | Turn a reference video into a contact sheet, motion-energy curve and burst timings. |
assets/reference-reveal.html | The complete, working reference implementation (two-block logo, 12 ink dots, stars, bouncing letters, full soundtrack). |
Run the helpers
# 1) study a reference video (writes ref_analysis/report.md, contact_sheet.jpg, peak_frames/)
python "${CLAUDE_SKILL_DIR}/scripts/analyze_reference.py" reference.mp4 --out ref_analysis
# 2) look at your animation without exporting a video
python "${CLAUDE_SKILL_DIR}/../html-to-video/scripts/export_mp4.py" logo.html --snapshots 0,1500,3500,6000,9000
# 3) export
python "${CLAUDE_SKILL_DIR}/../html-to-video/scripts/export_mp4.py" logo.html -o logo-square.mp4 --fps 60
python "${CLAUDE_SKILL_DIR}/../html-to-video/scripts/export_mp4.py" logo.html -o logo-reel.mp4 --preset vertical --fps 60
If ${CLAUDE_SKILL_DIR} is not expanded in your environment, use the path to this skill's folder instead. One-time setup: pip install -r scripts/requirements.txt here and in ../html-to-video/scripts/, then python -m playwright install chromium.
What to tell the user at the end
- The files you made (HTML, MP4s) and what each is for.
- How to preview (open the HTML, click once to enable sound) and how to export again after a change.
- The 3-5 knobs they are most likely to tweak (colours, text, timing constants), with the names to search for.
- Anything you simplified (for example "the gradient was flattened to two colours") so nothing surprises them.