agentleFS
soilmasssoilmass/motion-design-agent/skills/remotion/SKILL.md

remotion

Skill7 starsChanged 10 months agoMITView on GitHub

Remotion video rendering with motion design tokens. Use when creating programmatic videos, implementing motion token animations in Remotion, or building video templates. References Remotion documentation and M3 token integration.

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use aeon-update, auto-workflow and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • aaronjmarsSkill

    aeon-update

    Pull framework updates from the upstream Aeon repo into this instance - 3-way merges canon's new commits into a PR, never clobbering operator config.

    Also in 4 projects that use this

  • aaronjmarsSkill

    auto-workflow

    Two-mode aeon.yml workflow builder - analyze inspects URLs and emits a tiered, signal-verified skill-enablement plan plus an aeon.yml diff; enable flips slugs to enabled:true and opens a PR.

    Also in 4 projects that use this

  • +10 more from aaronjmars

The file

Files
SKILL.md

Remotion Integration

React-based video rendering with motion design tokens.

Standards Reference

StandardDocumentation
Remotionremotion.dev/docs
M3 TokensIntegrated via tokens/

Core Concepts

Frame-Based Animation

Remotion uses frames, not milliseconds.

// Convert ms to frames
const msToFrames = (ms, fps = 30) => Math.round((ms / 1000) * fps);

// medium-1 (250ms) at 30fps = 8 frames
const frames = msToFrames(250, 30);

Token Integration

import tokens from '../tokens/motion.tokens.json';

const getDuration = (tokenName, fps = 30) => {
  const ms = parseInt(tokens.motion.duration[tokenName].$value);
  return msToFrames(ms, fps);
};

const getEasing = (tokenName) => {
  const [x1, y1, x2, y2] = tokens.motion.easing[tokenName].$value;
  return Easing.bezier(x1, y1, x2, y2);
};

Interpolation

Basic Usage

import { interpolate, useCurrentFrame, Easing } from 'remotion';

const MyComponent = () => {
  const frame = useCurrentFrame();

  const opacity = interpolate(
    frame,
    [0, 8], // 8 frames = 250ms at 30fps
    [0, 1],
    { easing: Easing.bezier(0.05, 0.7, 0.1, 1) }
  );

  return <div style={{ opacity }} />;
};

With Tokens

import { interpolate, useCurrentFrame, Easing } from 'remotion';
import tokens from '../tokens/motion.tokens.json';

const MyComponent = () => {
  const frame = useCurrentFrame();
  const fps = 30;

  const durationFrames = msToFrames(
    parseInt(tokens.motion.duration['medium-1'].$value),
    fps
  );

  const [x1, y1, x2, y2] = tokens.motion.easing['emphasized-decelerate'].$value;

  const opacity = interpolate(
    frame,
    [0, durationFrames],
    [0, 1],
    { easing: Easing.bezier(x1, y1, x2, y2) }
  );

  return <div style={{ opacity }} />;
};

Spring Animation

import { spring, useCurrentFrame, useVideoConfig } from 'remotion';
import tokens from '../tokens/spring.tokens.json';

const MyComponent = () => {
  const frame = useCurrentFrame();
  const { fps } = useVideoConfig();

  const springConfig = tokens.motion.spring.enter.$value;

  const scale = spring({
    frame,
    fps,
    config: {
      damping: springConfig.damping,
      stiffness: springConfig.stiffness,
      mass: springConfig.mass
    }
  });

  return <div style={{ transform: `scale(${scale})` }} />;
};

Composition Structure

import { Composition } from 'remotion';

export const RemotionRoot = () => {
  return (
    <>
      <Composition
        id="TitleCard"
        component={TitleCard}
        durationInFrames={90} // 3 seconds at 30fps
        fps={30}
        width={1920}
        height={1080}
      />
    </>
  );
};

Sequence Animation

import { Sequence } from 'remotion';

const MyVideo = () => {
  return (
    <>
      <Sequence from={0} durationInFrames={30}>
        <Title />
      </Sequence>
      <Sequence from={15} durationInFrames={45}>
        <Subtitle />
      </Sequence>
      <Sequence from={30} durationInFrames={60}>
        <Content />
      </Sequence>
    </>
  );
};

Frame Conversion Table

TokenValue24fps30fps60fps
short-150ms123
short-4200ms5612
medium-1250ms6815
medium-2300ms7918
long-2500ms121530

See references/interpolate-recipes.md for common patterns. See references/spring-configs.md for spring presets.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.