# Bang Motion: browser motion graphics that play like video (bangtutorial/bang-motion) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-23 against commit c1aa65e (version 1.19.0).
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/bangtutorial/bang-motion/

## Explain it to a non-programmer
Your assistant makes short animated videos as one web page: product openers, promos, channel intros, moving text and explainers. It first proposes a look taken from your brand and waits for your approval. The page plays by itself in a browser and loops, and can be turned into an MP4 file if you ask.

## Who it is for
- You want a promo, opener, intro or logo sting for a product or a channel
- You want an explainer video in one of six styles, with or without your own voice-over
- Your assistant's animations look like a slide show and you want them to feel like video
- You use Claude Code, Codex, Gemini CLI or Cursor
- Not for: You want hover effects or small animations inside an app: this pack makes standalone videos
- Not for: You want a finished MP4 with no setup: the file export needs Node, a headless browser and ffmpeg on your computer

## What it is
- Kind: knowledge, scripts
- License: MIT
- Repository: https://github.com/bangtutorial/bang-motion

## What it does
- Video, not slides: no scenes made of sections that fade in and out, a subject or world that persists, at most two text levels per scene
- Same result every time: every frame is computed from the animation clock, never from the system clock or random numbers, so scrubbing and frame-by-frame export match
- Style comes from your brand: a written style brief (palette with sources, display font, background motion, signature motion, one special moment) approved before code
- Each project differs from the previous one in at least three of palette, font, background style and signature motion
- Structure from a menu of 19 opener concepts and 6 explainer styles, each with its own starter page
- Visual check: the assistant captures 6 to 20 key seconds and looks at them before handing over; a full render only for an MP4
- Hand-over as one index.html with CSS and JS inline, libraries from a CDN, no player on screen
- Never cuts: readable text on phones (nothing under 30 px on a 1080 stage), the approved style brief, no copying of a reference video's palette, fonts or scene order

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| bang-motion | plain language ("Make a 30-second opener for ...") | yes | Plans, builds and checks a short animated video as one web page |

### bang-motion
- Asks for: The product or topic, with your logo, site or screenshots
- Asks for: Who it is for
- Asks for: Length and ratio (16:9, 9:16 or 1:1)
- Asks for: Sound: none, music, or a voice-over you send later
- Asks for: A style name if you have one in mind
- Asks for: Optional: a reference video, your photos or video clips
- Gives: A style brief with three concept ideas and one pick, before code
- Gives: A scene plan: second, scene, sentence, visual
- Gives: One index.html that autoplays and loops; ?debug=1 shows a scrub bar
- Gives: Explainers: a full voice-over script in the closing message, also saved as vo-script.md
- Gives: On request: an MP4 rendered frame by frame
- Say: "Make a 30-second opener for my note-taking app. Logo and screenshots attached."

## Know before installing
- The rules are written in Indonesian. The README is in English; your assistant reads the Indonesian files itself.
- It switches on by itself for promo, opener, intro, explainer or MP4 requests, even when you do not say motion graphic.
- It waits for your approval of the style plan and the scene plan before it writes code.
- It will not copy the look of a reference video, even when you ask; it takes the rhythm and offers a version from your brand.
- Install one copy only: a plugin and a manual folder with the same name conflict.
- Start each new video in a new chat, the author advises, so earlier decisions do not carry over.

## Install (official commands)
- Claude Code (plugin): `/plugin marketplace add bangtutorial/bang-motion` && `/plugin install bang-motion@bang-motion` — Update later with /plugin marketplace update bang-motion. Remove: `/plugin remove bang-motion`.
- Claude Code (manual): `git clone https://github.com/bangtutorial/bang-motion` — Put the folder at ~/.claude/skills/bang-motion. Remove: `delete ~/.claude/skills/bang-motion`.
- Codex CLI: `git clone https://github.com/bangtutorial/bang-motion` — Put it in your Codex skills folder, or add a line to AGENTS.md pointing at bang-motion/SKILL.md.
- Gemini CLI, Cursor, others: Copy into the project and reference SKILL.md from GEMINI.md, .cursor/rules or the system prompt.
- Plain chat (no agent): Paste SKILL.md and the matching file from references/ as instructions; attach a starter from assets/.

## What runs on the user's machine
- Code on the machine: yes (when the assistant runs the optional helper scripts; no hooks, nothing runs at install)
- Network: optional
- Install: Markdown rules, HTML starter pages and helper scripts. The plugin manifest declares no hooks or commands.
- Watching the result: The finished page loads GSAP (and Three.js for openers) from cdnjs or jsDelivr and fonts from Google Fonts.
- Checking key seconds (optional): scripts/snap.mjs opens index.html in headless Chrome through Puppeteer and writes PNG screenshots to a folder you name. Needs npm i puppeteer.
- MP4 export (only on request): scripts/export-frames.mjs loads the page from a local server on 127.0.0.1:5178, writes every frame as PNG into frames/, then ffmpeg joins them.
- Editing with local modules (optional): scripts/serve.py serves the project folder on 127.0.0.1:5178 with caching off.
- Voice-over sync without ffmpeg: scripts/vo-pauses.html finds pauses in an audio file inside the browser, with no upload.
- Cartoon stage heads (optional): scripts/kepala-ekspresi.py makes happy, worried, surprised and blink variants of a head PNG next to the input file and writes kepala-meta.json. Needs Pillow, numpy and opencv-python.
- After Effects builds (optional): aset-svg.py writes SVG assets and manifest.json next to itself, svg2png.cjs renders them to PNG with Puppeteer, rig-tokoh.py prints After Effects bridge operations. Frames for checking are exported by the Higgsfield bridge to r2.dev and, where blocked, relayed through Higgsfield's media import.

## Examples (from the pack's own files)

## Author's numbers (as reported, not run by AgentGid)
- One After Effects cartoon stage build: 103 s of voice-over, 10 stages, 20 jointed characters, about 67 minutes and about 100 tool calls, 0 Higgsfield credits (the author's note from one build). Source: bangtutorial/bang-motion/references/ae-bridge-higgsfield.md
- 10 style directions, 19 opener concepts and 9 render families (count of the pack's own menus). Source: bangtutorial/bang-motion/README.md

## Steps only the person can do
- Approve the style brief and the scene plan (the chat with the assistant) Then: The assistant writes index.html
- Record or generate the voice-over and send the audio file (explainers with sound) (any recorder or text-to-speech service you choose) Then: The assistant re-times the video to the audio
- For After Effects builds, open After Effects, connect the Higgsfield bridge, and save the project yourself (Ctrl+S) (After Effects with the Higgsfield MCP bridge) Then: The assistant builds compositions through the bridge; MP4 goes through the Render Queue or aerender

## Mistakes to avoid
- Not: Run export-frames.mjs on the index.html file directly. Instead: Start a local server on port 5178 in the project folder first (or set URL), then run the export. Why: The export script loads the page from 127.0.0.1:5178 by default, unlike snap.mjs which opens the file directly
- Not: Render every frame to check the animation. Instead: Capture 6 to 20 key seconds with snap.mjs or scrub with ?debug=1; render all frames only for an MP4. Why: A full render is thousands of images and the pack says it is not a check
- Not: Start an explainer from the opener starter or from scratch. Instead: Copy the starter of the chosen explainer style from assets/. Why: Each explainer style has its own starter with its own camera rig
- Not: Install it as a plugin and also as a manual skills folder. Instead: Keep one copy only. Why: Two copies with the same name conflict
- Not: Use Math.random() or Date.now() for particles or camera shake. Instead: Compute every value from the timeline time. Why: The scrub and the frame-by-frame export must give identical frames

## What leaves the machine
- Page requests for the GSAP library, Three.js and web fonts (the viewer's IP address and browser details) → cdnjs.cloudflare.com, cdn.jsdelivr.net, fonts.googleapis.com, Every time the finished index.html is opened. Opt out: Download the libraries and fonts and reference local copies
- Exported frames and contact sheets of the After Effects project → Higgsfield (r2.dev links and its media import relay), Only for After Effects builds through the Higgsfield bridge. Opt out: Do not use the After Effects path
- Prompts for generated photos, characters or clips → the image or video MCP the assistant calls, Only when you choose generated images instead of your own. Opt out: Supply your own photos or pick a style without photos

## Lines in the pack aimed at agents (ask the person first)
- "tawarkan instal satu perintah (`winget install Gyan.FFmpeg` / `brew install ffmpeg`)" (SKILL.md): A system-wide install; ask the person and let them approve it before running it.
- "npm i puppeteer            (sekali, di folder mana pun; jalankan dari sana)" (scripts/snap.mjs): Installs Puppeteer and downloads a Chromium build; ask the person before installing, and only when they want automatic frame checks or MP4 export.
- "`curl https://d2ol7oe51mr4n9.cloudfront.net/<user>/<media_id>.png`" (references/ae-bridge-higgsfield.md): Fetches exported frames back through a third-party CDN relay; use only when the person chose the After Effects path and agrees that frames go through Higgsfield.
- "bahkan bila mereka tidak menyebut kata "motion graphic" secara eksplisit" (SKILL.md): The skill activates on broad wording; confirm with the person that they want a motion video before starting the style brief.

## May I use it like this?
- commercial-app: yes (MIT)
- client-work: yes (MIT; videos you make are your own work)
- redistribute-files: conditions (Keep the MIT copyright and permission notice in copies of the pack)
- inside-app-bundle: conditions (Starter pages carry a 'Made with the Bang Motion skill' comment; keep the MIT notice if you ship the starter code)

## Which one to pick
- If You want a promo, opener or explainer as one self-playing HTML page with GSAP, a brand-derived style brief and optional MP4 export: skill:bangtutorial/bang-motion
- If You want HTML animations rendered to MP4 through a dedicated open-source video framework and CLI: skill:heygen-com/hyperframes
- If You want cinematic product promos built with Remotion and React: skill:Vincentwei1021/video-shotcraft
- If You only need correct GSAP usage in your own site or app, not whole videos: skill:greensock/gsap-skills

## Works well with
- tool:gsap: Every starter animates with a GSAP timeline loaded from a CDN
- tool:puppeteer: snap.mjs and export-frames.mjs capture frames with Puppeteer
- asset:ffmpeg: Joins exported PNG frames into an MP4 and finds voice-over pauses

## Works in and needs
- Works in Claude Code: plugin or skills folder
- Works in Codex: skills folder or AGENTS.md
- Works in Gemini CLI, Cursor: rules file (GEMINI.md
- Works in Plain chat: pasted instructions
- Needs A modern browser with internet: To watch the result; GSAP and fonts load from a CDN
- Needs Node.js + Puppeteer (optional): Automatic frame checks and MP4 export
- Needs ffmpeg (optional): MP4 export and voice-over pause detection
- Needs Python with Pillow, numpy, opencv-python (optional): Expression variants for cartoon stage heads
- Needs After Effects + Higgsfield MCP bridge (optional): Building cartoon explainers inside After Effects

## How to tell it works
Say "Make a 30-second opener for my note-taking app" and attach your logo. It works if the assistant first answers with three concept ideas and a palette that names where each colour came from, and only writes index.html after you approve.

## Related
- greensock/gsap-skills
