{"data":{"slug":"discovered-f1c3c3b007ea80abb6c3e07a9c5806789151c1138e3c967f","title":"Motion Design","summary":"Create motion for web pages and code-made video using Motion, GSAP, HyperFrames, and Remotion. Define consistent motion numbers (durations, curves, springs, stagger, holds) for both site and video, and choose the right video stack with its license, voiceover sync, captions, sound, export settings, and frame-level review.","url":"https:\/\/skillshunter.net\/skills\/discovered-f1c3c3b007ea80abb6c3e07a9c5806789151c1138e3c967f","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-f1c3c3b007ea80abb6c3e07a9c5806789151c1138e3c967f","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-f1c3c3b007ea80abb6c3e07a9c5806789151c1138e3c967f.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-f1c3c3b007ea80abb6c3e07a9c5806789151c1138e3c967f\/download","category":{"slug":"product-design","name":"Product & Design"},"editor_note":"Before rendering, run `npx hyperframes check` to ensure no issues. Use `cubic-bezier(0.16, 1, 0.3, 1)` for entrance animations and `cubic-bezier(0.7, 0, 0.84, 0)` for exits. Never animate width, height, top, left, or `box-shadow` on the web. For Remotion, render MP4s and avoid handing over the project to clients.","instructions":"---\nname: motion-design\ndescription: Make things move like a studio made them, on web pages (Motion, CSS, GSAP) and in code-made video (HyperFrames, Remotion, canvas renders). One set of motion numbers (durations, curves, springs, stagger, holds) for the site and the video, plus how to pick a video stack and its licence, word-locked voiceover sync, captions, sound and loudness, export settings, and a frame-level review. Use when adding animation to a page or component, or when building a product demo, launch video, explainer, reel, animated captions, a footage edit or any HyperFrames or Remotion composition.\nmetadata:\n  license: AGPL-3.0-or-later\n  copyright: \"2026 DevTribe Labs\"\n  homepage: https:\/\/github.com\/DevDadTribe\/toolbox\n---\n\n# Motion design: one set of numbers, for the site and the video\n\nMotion that looks like AI made it has three tells. Everything moves at once. Everything moves\nat the same speed. Everything starts and stops like a machine. Studio motion has a lead, a\nrhythm and weight. You get those from a few numbers, used the same way every time. So keep\nthe numbers in one place (the project's `DESIGN.md`, Components section), and use them in both\nthe web code and the video code. Then the brand moves the same way everywhere.\n\n`resources.md` in this folder rates the outside motion skills and tools, with their licences.\n\n## The numbers (use these if the project has none)\n\n| Job | Web | Video at 30 fps |\n|---|---|---|\n| Hover, press, toggle | 120\u2013180 ms | 4\u20135 frames |\n| Menu, tooltip, small panel | 200\u2013300 ms | 6\u20139 frames |\n| Card or section enters | 350\u2013500 ms | 11\u201315 frames |\n| Hero, scene change, camera move | 600\u2013900 ms | 18\u201327 frames |\n| Stagger between list items | 30\u201360 ms, total under 400 ms | 1\u20132 frames |\n| Hold a line of text | (it stays) | see \"Holds\" below |\n\n**Respond fast, move slower.** The first visible change after a hover must come within 100 ms,\nafter a press within 150 ms, after a drag starts within 50 ms. The move itself can then take\nthe time in the table.\n\n**Longer trips take longer.** The table is for a move of about 100 px. Scale it: 50 px \u00d7 0.8,\n200 px \u00d7 1.3, 400 px \u00d7 1.6, the whole screen \u00d7 1.8\u20132. On phones, use about 0.8 of the desktop\ntime and cut stagger totals by a third.\n\n**Curves.** Never use linear, except for loops that never stop (marquee, spinner), progress bars\nand a camera pan inside a scroll-driven timeline.\n\n- Enter: `cubic-bezier(0.16, 1, 0.3, 1)`. It is fast at first, then settles slowly.\n- Exit: `cubic-bezier(0.7, 0, 0.84, 0)`. Make an exit about 70% as long as its entrance.\n- Move across the screen: `cubic-bezier(0.65, 0, 0.35, 1)`.\n\n**Springs.** Motion and Remotion both take `stiffness`, `damping` and `mass`, so the same three\nnumbers make the same feel in each:\n\n| Feel | stiffness | damping | Use for |\n|---|---|---|---|\n| Snappy, no bounce | 380 | 30 | UI: switches, tabs, menus |\n| Soft entrance | 200 | 20 | cards, images |\n| Playful, one small overshoot | 300 | 15 | icons, mascots, a celebration |\n\n**Overshoot budget.** How far past the target a thing may go, by what it means: an error 0%\n(shake it instead: \u00b110\u201315 px, 2\u20133 times, 300\u2013400 ms), feedback 2\u20135%, success 5\u201310%, a\ncelebration 15\u201325%.\n\n**Distance.** Enter from 8\u201324 px away, not 100 px. Scale from 0.96, not from 0. Small moves look\nexpensive. Big moves look like a slideshow.\n\n**Stagger direction.** Top to bottom on entry, the reverse on exit, and from the centre out for a\nhero grid. With three or more things on screen, at most a third of them move at the same time.\n\n## The principles that matter, as rules\n\n1. **Slow in, slow out.** Nothing starts or stops at full speed. Use the curves above.\n2. **Staging.** One thing moves where the eye should go, and everything else holds still. If two\n   things want attention, put them one after the other.\n3. **Follow-through and overlap.** Parts settle at different times. Stagger the children, and let\n   a badge land 1\u20132 frames after its card.\n4. **Arcs.** In video, a thing that travels moves on a curve, not a straight diagonal. Give x and\n   y different curves, or move it on a path.\n5. **Anticipation.** Before a big move, wind up a little: 3\u20136% the other way, for 4\u20136 frames. Use\n   it in video and for big reveals only. Never use it on a button.\n6. **Timing shows weight.** Small things move fast and big things move slower. A whole-screen move\n   faster than 400 ms feels cheap.\n7. **Secondary action.** Small motion that supports the main move: a click ripple under the\n   cursor, a shadow that grows as a card lifts.\n8. **Squash and stretch.** Use it only for a playful brand. On UI, the most you need is a press at\n   scale 0.98.\n9. **Hold.** Let people read. In video, never move text while it must be read.\n\nA flat fade is the commonest AI tell. Make an entrance out of two or three properties at once:\nopacity, a rise of 8\u201324 px, and a scale from 0.96.\n\n## On the web\n\n- **Motion** (the library that was framer-motion) is the default. Import from `motion\/react`, not\n  `framer-motion`. Its official agent route is `npx motion-ai` (see `resources.md`).\n- Animate only `transform` and `opacity`. Never animate width, height, top, left or `box-shadow`.\n  Never animate `filter: blur()` on a large element, because iPhone Safari flashes it black.\n- `prefers-reduced-motion`: use fades instead of moves, and stop the loops. In Motion, wrap the\n  app in `<MotionConfig reducedMotion=\"user\">`, and check `useReducedMotion()` for anything custom.\n  Give a pause control to any motion that plays for more than 5 seconds.\n- Animate on scroll once (Motion: `viewport={{ once: true }}`), not every time it scrolls back.\n- Never start the main headline at `opacity: 0`. The page must show its point with no JavaScript.\n- Use `layout` and `AnimatePresence` (Motion) to reorder and remove things. Do not hand-time them.\n- One animation library and at most one smooth-scroll library per project. Use Lenis, set up as\n  in `web-design` section 5.\n- **If the project already uses GSAP**, stay on GSAP and do not add Motion. In React, put every\n  tween inside `useGSAP(() => { \u2026 }, { scope: ref })` so it is cleaned up on unmount. Register\n  plugins once at the top of a module. Use `gsap.matchMedia()` for reduced motion. Use\n  `autoAlpha`, not `opacity`, so a hidden thing cannot be clicked. With ScrollTrigger, animate the\n  children of a pinned element, not the element, and call `ScrollTrigger.refresh()` after fonts\n  and images load. All GSAP plugins (SplitText, MorphSVG and the rest) are now free, so never add\n  an auth token or `.npmrc` for them.\n\n## In video\n\n### Pick the stack first\n\n| Stack | Use it for | Licence |\n|---|---|---|\n| **HyperFrames** (HTML + GSAP, rendered by headless Chrome and FFmpeg) | Launch videos, explainers, client work, anything the client may later own | Apache-2.0. No fees, no headcount rule |\n| **Remotion** (React) | Data-driven templates and many personalised renders | Free only for a company of up to 3 people. Paid from 4 (freelancers and part-timers count). If the client owns or edits the project, both companies' headcounts are added |\n| **Canvas + your own renderer** | Fully drawn styles (cut paper, riso, pixel art) | Yours |\n\n**Licences in practice:**\n\n- **Remotion for client work: render it yourself and hand over the MP4.** Never hand a client the\n  Remotion project or let them edit it, because then their headcount counts too.\n- **In a product where each customer runs Remotion themselves**, each\n  customer brings their own Remotion licence. Say so plainly in that product's docs and setup\n  screen. If your servers render for customers instead, those renders are yours and need\n  Remotion's per-render plan: read it before you build that.\n- **Anything a client will own or edit** is built in HyperFrames.\n\nNever install two video stacks in one project.\n\n**Telemetry.** The HyperFrames command line sends usage data by default. Set\n`HYPERFRAMES_NO_TELEMETRY=1` in the shell and in CI. Pin versions: never let a skill run\n`@latest upgrade` on its own.\n\n### Build rules (any stack)\n\nFor screen tutorials and product walkthroughs, read [guided screen zooms](references\/guided-screen-zooms.md)\nbefore capturing or planning crops. It defines the context\/zoom\/result\/return sequence, the\nsource-pixel budget and the rendered proof. It takes precedence over decorative camera rules\nfor these shots: keep UI flat and readable, with no anticipation, overshoot or click ripple\nunless the brief asks for it.\n\n1. **Write the beat sheet before any code.** Each beat gets its start frame, length, what moves,\n   what the viewer must read or understand, and the sound cue. Long, exact briefs beat one-liners.\n2. **Drive everything from the frame number or the timeline's time.** No CSS transitions, no CSS\n   or Tailwind animation classes, no timers, no clocks, no `Math.random()` without a seed. A\n   render must come out the same every time.\n3. **Wait for fonts.** Load every font locally and start the timeline only after\n   `document.fonts.ready` (Remotion: `loadFont()` from `@remotion\/google-fonts`). Never fetch an\n   asset over the network during a render. Vendor GSAP; do not load it from a CDN.\n4. **Write time in seconds \u00d7 fps** (`4 * fps`), not raw frame counts, so a change of fps keeps the\n   timing.\n5. **Frame 0 must be a finished picture.** Feeds autoplay muted and use the first frame as the\n   thumbnail. The same holds for a looping GIF: shift the loop so frame 1 is the payoff.\n6. **Camera moves are slow and come one at a time**: 1.5 seconds or more, eased, never two at\n   once. Zoom in log space, so a push feels even. Put the scale origin on the thing being\n   clicked, so it stays still while the camera pushes in.\n7. **Do not scale text that has `will-change` on it,** or it renders blurry. Never call\n   `getBoundingClientRect()` while tweening: measure layout once before the timeline starts.\n\nHyperFrames: one paused `gsap.timeline` per composition, registered on `window.__timelines` under\nthe root's `data-composition-id`, and only after fonts are ready (otherwise the render is blank).\nThe root's `data-duration` sets the length. Never tween `display` or `visibility` on a `.clip`.\nEvery `<audio>` needs an `id`, or the render is silent. Run `npx hyperframes check` to zero\nfindings before you render.\n\nRemotion: `<OffthreadVideo>` for footage. `premountFor={fps}` on every `<Sequence>`. Transitions\noverlap the scenes, so the total is shorter than the sum of the scenes. Add packages with\n`npx remotion add` so versions match.\n\n### Lock motion to the voice\n\nGet word timings first (Whisper or the voice tool's own timings). Then:\n\n- A thing that must be read starts 0.02\u20130.06 s **before** its word. A click or a number landing\n  starts **on** its word.\n- No more than two cues on one word.\n- A scene lasts its voiceover, plus a 0.2\u20130.5 s hold, plus the transition. The next scene starts\n  at the hold, not at the end.\n- Start a new beat about 0.3 s after the last sentence ends.\n- A sound effect starts 2\u20133 frames before the visual lands.\n- Word times guessed from an SRT are only good to \u00b10.2 s. Put key changes on the first or last\n  word of a cue, or measure.\n\n### Holds (no voiceover)\n\nAbout 0.35 s per word, plus 0.3 s, and never under 1.2 s. Flag any still stretch over 3 seconds\nthat is not a deliberate hold.\n\n### Captions and safe areas\n\n- Show a caption within 2 frames of its word. 2\u20134 words per caption, at most about 17 characters\n  a second, and at least 0.7 s on screen.\n- Use `tabular-nums` on counting numbers, so the digits do not jitter.\n- For 9:16 (1080 \u00d7 1920): keep text inside x 90\u2013930 and y 250\u20131500. Keep it out of the right\n  120 px, where the like and share buttons sit.\n- Sizes at 1080 wide: captions at least 50 px tall, labels at least 34 px, hero type at least\n  120 px, and at most 5 words on screen at once.\n- The key message must still read when the frame is shown 360 px wide.\n\n### Editing your own footage\n\n- Cut pauses of 0.55 s or more. Leave a breath: 0.24 s after a pause of 2 s or more, 0.20 s after\n  a sentence ends, 0.14 s otherwise. Keep 0.22 s before the first word and 0.34 s after the last.\n- A script cannot tell a stutter from emphasis (\"never, never\"). Show the list of mistake cuts\n  to a person before you apply it.\n- B-roll cutaways last 3\u201310 s. Never in the first second of the hook, never over an emotional\n  line, and keep about 2 s of face between cutaways. Aim for 2\u20134 cutaways a minute (light) or\n  4\u20137 (busy).\n- Never invent a number for a chart. Use a skeleton bar until the real figure arrives.\n\n### Sound\n\n- One key for every tonal sound. One riser and one impact per video, not one per scene.\n- Levels: the hero hit at gain 0.25\u20130.35, supporting sounds 0.08\u20130.2, the pad about 0.03. Duck\n  the music bed 14\u201320 dB under the voice.\n- Before the payoff, drop to near silence for 0.5\u20134 s, then play the single loudest hit. Put the\n  payoff sound in the pause before the line that names it, not under the line.\n- \"The music is too loud\" means lower the bed against the voice. A quieter master is not a fix.\n- Measure each sound effect in the delivered file. A quiet source cannot be fixed by a volume\n  setting.\n\n### Export\n\n- **Loudness:** two-pass `loudnorm` to \u221214 LUFS for social (\u221216 for a talking head), with the\n  true peak at \u22122 dBTP before the AAC encode, so the MP4 lands under \u22121 dBTP.\n- **Video:** H.264, `yuv420p`, limited (TV) range, BT.709 tags, `-crf 19 -tune film`, and an\n  audio track even when it is silent. Check the result with `ffprobe`.\n- **Grain:** change the grain pattern 12 times a second, not every frame. Grain on every frame\n  made files 7\u20139 times bigger. No `mix-blend-mode` in overlays (it can render the frame white).\n  Check contrast with the grade turned off.\n- **Motion blur:** 4\u20138 sub-frames per frame over a 180\u00b0 shutter, blended with FFmpeg `tmix`.\n  Never blend across a hard cut.\n- **GIF:** `paletteuse=dither=none`, frame 1 is the finished picture, and check the loop seam.\n\n## Check renders, not code\n\nCode that reads well can still look wrong. Look at frames.\n\n1. Render a still 0.3 s after each beat starts (so the motion has settled), then a short preview.\n2. Review in three separate passes: sync (does it land on the word?), motion (one lead, eased,\n   staggered), and read (can every line be read in time?).\n3. Catch pops and flashes with frame differences: a jump more than 3 times its neighbours is a\n   pop; a frame that differs from both neighbours while they match each other is a one-frame\n   flash. For a loop, check that position and speed both match at the seam.\n4. Treat a note from the client as a symptom. Find the cause before you change anything, and\n   never overwrite a render: number each version.\n\n## Review checklist (web and video)\n\n- [ ] Does each moment have ONE thing leading?\n- [ ] Is anything moving at linear speed that should ease?\n- [ ] Do children stagger, or do they all land on the same frame?\n- [ ] Are the exits faster than the entrances?\n- [ ] Does any text move while someone must read it, or leave too soon?\n- [ ] Is anything traveling more than 24 px when it enters? Could it be smaller?\n- [ ] Web: with reduced motion on, does it still make sense?\n- [ ] Web: is it smooth on a real phone, not only on a desktop?\n- [ ] Video: is frame 0 a finished picture?\n- [ ] Video: do stills at the beat boundaries look finished on their own?\n- [ ] Video: does it read at 360 px wide, with text inside the safe area?\n- [ ] Video: is the loudness \u221214 LUFS (or \u221216) with the peak under \u22121 dBTP, checked with `ffprobe`?\n- [ ] Video: is the stack's licence right for this client and this team size?\n","use_cases":["Adding animation to a web page or component","Building a product demo, launch video, or explainer","Creating animated captions or footage edits","Developing a HyperFrames or Remotion composition"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/DevDadTribe\/toolbox\/blob\/5f44c242b6e4997ebc34dec7202932c4aa6701f6\/skills\/motion-design\/SKILL.md","source_commit":"5f44c242b6e4997ebc34dec7202932c4aa6701f6","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:41:50.000000Z","updated_at":"2026-11-29T10:53:02.000000Z","seo_title":"Motion Design: Create Consistent Animations for Web and Video","seo_description":"Design motion for web and video with consistent timing, curves, and animation principles. Use Motion, GSAP, HyperFrames, and Remotion with proper licensing and export set","seo_keywords":["motion design","web animation","video animation","GSAP","HyperFrames","Remotion","animation timing","motion curves"]}}