/givemotion:givemotionfrom givemotion
Creates videos from HTML+CSS+JS using givemotion, rendering MP4/WebM/GIF/ProRes. Useful for motion graphics, explainers, promos, title cards, animated charts, UI demos, and social clips.
Ships in givemotion. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A composition is one HTML file. Every frame is that page at a moment in time. CSS animations, transitions, Web Animations, timers, requestAnimationFrame, canvas and WebGL all run on a virtual clock, so what you write renders frame-exact and identically every time. No script tag or import is needed: the runtime (window.gm) and a preset stylesheet are injected for you.
This file is the core (read it all). Then read only the 1-3 technique recipes your video needs (table at the end): each shows how a pro builds that effect, with numbers and an example.
references/direction.md.still each: judge them as posters (one focal point, hierarchy, margins). Then animate.npx givemotion check video.html as you go: fix every ✖; ⚠ are real faults unless meant; ℹ are style hints.npx givemotion review video.html (reads brief.md beside the page, or --brief) shows what a viewer sees: overview, the frames people read, motion strips, beats.png (each brief beat at its times). Check each beat word by word, score per review/REVIEW.md, fix the five worst. On the near-final cut, give one sub-agent the critic prompt in REVIEW.md, fix what it finds. Build scenes yourself, not via sub-agents (references/review.md). Brief times go in data-expect.npx givemotion render video.html -o out/video.mp4.--json for machine output, --help for options. still video.html -t 3.2 -o f.png renders one moment; inspect --at 4.5 --el "#logo" says where an element is.
The engine gives you any HTML/CSS/SVG/canvas and a frame-exact timeline; the look comes from how you choreograph it. Blind viewers preferred videos where every element was choreographed by hand over videos built from one-word presets.
gm.timeline for anything that matters: explicit start times, per-move easing (a fast expo.out slam, a soft sine.inOut drift, a back.out(1.6) landing), offsets of 40-120 ms between related parts. Presets (data-enter, data-camera) are fine for small supporting things.transform/translate/scale/rotate/opacity/filter/clip-path, not width/top/left.Viewers preferred videos where the eye always knew where to look.
expo.out, power3.out, or back.out(1.4) when it lands with weight).power2.in), shorter than the entrance (60-70%).power2.inOut, sine.inOut): it starts gently and lands gently.sine.inOut; linear only for loops (spins, tickers). Nothing that starts or stops on screen moves linearly.ease out and the engine already does this (entrances spring in, moves ease in and out, exits ease in); when you set one, follow the rules above.<!doctype html>
<html data-width="1920" data-height="1080" data-fps="30" data-duration="2.5">
<head>
<style>
:root { --bg: #0b0d12; --ink: #fff; --accent: #7c9cff; }
body { background: var(--bg); color: var(--ink); font-family: Inter, sans-serif; }
.scene { display: grid; place-items: center; } /* .scene is already absolute + full frame */
h1 { font-size: 160px; letter-spacing: -0.03em; margin: 0; }
.glow { position: absolute; width: 900px; height: 900px; border-radius: 50%; background: var(--accent); filter: blur(160px); opacity: .25; }
</style>
</head>
<body>
<section class="scene">
<div class="glow"></div>
<h1 id="t" data-split="chars">Hello</h1>
</section>
<script>
gm.timeline('.scene')
.from('.glow', { scale: 0.6, opacity: 0, duration: 1.2, ease: 'sine.out' }, 0) // ambient: light blooms in…
.to('.glow', { x: 220, y: -90, duration: 2.5, ease: 'sine.inOut' }, 0) // …and keeps drifting
.from('#t .gm-char', { y: 140, opacity: 0, filter: 'blur(12px)', duration: 0.7, ease: 'expo.out', stagger: 0.05 }, 0.2) // main: fast in, blur while fast
.fromTo('#t', { letterSpacing: '0.12em' }, { letterSpacing: '-0.03em', duration: 2.4, ease: 'expo.out' }, 0.2) // detail: tracking tightens
.to('#t', { scale: 1.06, duration: 1.9, ease: 'sine.inOut' }, 0.6); // the hold keeps breathing
</script>
</body>
</html>
Built-in fonts: Inter, JetBrains Mono, Playfair Display, Space Grotesk, Bebas Neue, Nunito, Caveat; others via @font-face.
<html>: data-width, data-height (even numbers), data-fps (default 30), optional data-duration, optional data-background.1.5, 1.5s, 500ms, 45f (frames), 1:02.5.data-start, data-duration or data-end only exists (is displayed) from start to start+duration. Times are relative to its parent clip. Elements without timing are always there.data-duration on <html>, otherwise the end of the last clip.data-sequence on a container plays its children one after another. Every child needs data-duration, or give the container data-cuts="0 2.13 4.27" (when each child starts; also "beats: 0 4 8" / "bars: 0 1 2"). data-gap="0.2" (negative = overlap). data-transition="<name> <seconds> [easing]" overlaps neighbours and animates the change; a child can set its own data-transition (how it comes in). Each transition takes its length off the total: 3 scenes of 4s with fade 0.5 last 11s. Cuts on the beat, data-cut-align, and where a scene's time 0 then sits: references/timeline.md.push-/cover-/whip-/wipe- + left/right/up/down (push: new pushes old out; cover: slides over; whip: fast) diagonal clock iris zoom zoom-through (old scene flies past) flip (3D) dip (through black) blur fade-up fade, and morph: elements with the same data-morph="name" in both scenes fly and resize from the old place to the new one while the rest crossfades. Carries a logo or card across; in one scene: gm.fly.animation: fade-up .6s .4s both starts .4s after its clip appears. Use both (or backwards) fill so the element is hidden before its delay.data-enter counts from the start of the element's clip, so data-enter="write 0.8 11.9" writes a label 11.9 s into the scene and keeps it hidden until then. No extra clip needed.gm.onFrame(fn) gets the video's time, even in a scene; gm.onFrame('#s', (local, info, el) => …) counts from #s's start, like gm.timeline('#s').requestAnimationFrame, Date.now(), performance.now() are virtual and Math.random() is seeded. Normal web animation code works.For anything with more than a few moving parts, use gm.timeline: the GSAP API you know, computed from the time (frame-exact, parallel). Times are seconds relative to the clip that contains the scope.
gm.timeline('#scene2') // scope: selectors are looked up inside it
.from('.title .gm-word', { y: 120, opacity: 0, rotate: 8, stagger: 0.06 }) // no ease: springs in
.to('.card', { x: 400, y: -60, scale: 1.2 }, '+=0.3') // arcs, sized to the distance
.fromTo('.bar', { scaleY: 0 }, { scaleY: 1, stagger: { each: 0.08, from: 'center' } }, '<')
.to('#line', { draw: 1, duration: 1.5 }, 2) // draw an SVG stroke
.to('.price', { textContent: 249, duration: 1.5 }, 2.5); // count a number
gm.fly('#event', { from: '#slot2', at: 7.5, duration: 0.8 }); // fly from another element's box into its own place
from()/fromTo() show their start values from the clip's start (hidden until they enter). Overlapping tweens on one property: the latest start wins. Positions, all props and options, labels, keyframes, gm.fly and SVG caveats: references/timeline.md.
Also built in (tables in references/api.md): data-enter/data-exit presets, data-split, data-stagger, data-count (-roll), data-roll, data-type (typewriter), data-scramble, data-camera (push, float, shake…), data-parallax, data-morph, data-fit, data-pulse, easing names (GSAP names work), preset CSS keyframes and var(--px), and ready-made blocks (npx givemotion blocks: captions, code-window, cursor, browser-window, charts…).
| Your video has… | Read |
|---|---|
| A logo, brand sting, intro or end card | references/techniques/logo-reveal.md |
| Big type that slams, stacks, rotates; a headline as the star | references/techniques/kinetic-type.md |
| Text reveals: words/chars, typewriter, write-on, scramble, highlight | references/techniques/text-reveals.md |
| Camera moves: push, follow, whip, bank, zoom to a detail, shake | references/techniques/camera-moves.md |
| Several scenes handing over (push, whip, morph, shape wipes) | references/techniques/scene-transitions.md |
| Glow, light sweeps, gradients, grain, blur, depth | references/techniques/light-and-depth.md |
| Numbers, counters, bar/line charts, callouts | references/techniques/numbers-and-charts.md |
| Lines that draw, routes, maps, pins, something travelling a path | references/techniques/paths-and-maps.md |
| Flat shapes: grow, squash, split, orbit, morph | references/techniques/shapes-and-motion-graphics.md |
| An app/UI with a cursor, clicks, typing, lists | references/techniques/ui-demo.md |
| Code in an editor, typing, line highlights | references/techniques/code-on-screen.md |
| Impact and energy: slams, shake, bursts, music beats | references/techniques/impacts-and-energy.md |
| Word-by-word captions, vertical 9:16 clips | references/techniques/captions-vertical.md |
| Whiteboard, sketch, hand-drawn | references/techniques/hand-drawn.md |
| A living background behind everything | references/techniques/backgrounds-and-ambient.md |
| When… | Read |
|---|---|
| An attribute, preset, easing name, preset CSS or block | references/api.md |
gm.timeline in full: positions, keyframes, labels, gm.fly, SVG | references/timeline.md |
gm.camera worlds, shots, gm.path.travel, riding, parallax | references/camera.md |
gm.chart.*, chart blocks | references/charts.md |
Diagrams, arrows, data-sketch, gm.connect, gm.shape, path morphs | references/diagrams.md |
Music, beats, voice-over + givemotion words, video clips, captions | references/media-audio.md |
Data/templates, <gm-include> (scope, scenes, brand kit), blocks, highlight, cursor | references/data-templates.md |
gm.onFrame, canvas, three.js, gm.burst, springs, noise, random, Lottie | references/javascript.md |
| Render options, transparency, cache | references/output.md |
| Reviewing frames, learning from a reference video | references/review.md |
| A check code | references/check-codes.md |
| Motion principles in depth (optional) | references/motion-design.md; genre structures in references/genres/ |
references/api.md (opens in a new tab)references/camera.md (opens in a new tab)references/charts.md (opens in a new tab)references/check-codes.md (opens in a new tab)references/data-templates.md (opens in a new tab)references/diagrams.md (opens in a new tab)references/direction.md (opens in a new tab)references/genres/code-explainer.md (opens in a new tab)references/genres/data-story.md (opens in a new tab)references/genres/explainer.md (opens in a new tab)references/genres/hand-drawn.md (opens in a new tab)references/genres/logo-sting.md (opens in a new tab)references/genres/promo.md (opens in a new tab)references/genres/ui-demo.md (opens in a new tab)references/genres/vertical.md (opens in a new tab)references/genres/year-recap.md (opens in a new tab)references/javascript.md (opens in a new tab)references/media-audio.md (opens in a new tab)references/motion-design.md (opens in a new tab)references/output.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub givemotion/givemotion --plugin givemotionOther plugins' skills for the same job