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

motion-blur

Skill7 starsChanged 10 months agoMITView on GitHub

Motion blur techniques for video and high-performance animation. Disney-quality blur simulation for cinematic renders. Use when creating video content, game-like motion, or film-quality animation.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Blur on text: - Never blur text, destroys readability

    line 133

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Motion Blur

Simulating the natural blur that occurs in camera footage and human vision during fast motion. Essential for cinematic quality in video production.

Core Concepts

How Motion Blur Works

Real cameras have a shutter that's open for a portion of each frame. Objects moving during this exposure create blur along their motion path.

Shutter Angle:
- 180 degrees = 1/48s exposure at 24fps (film standard)
- 360 degrees = full frame exposure (maximum blur)
- 90 degrees = sharp, staccato look (action sports)

When to Use Motion Blur

ContextBlur LevelRationale
Film/CinemaCinematic (180 degrees)Natural, expected look
Video/BroadcastStandardClean but smooth
GamingSubtleResponsive feel
UI AnimationOffClarity, performance
TextOffReadability

Token Reference

Load from: tokens/motion-blur.tokens.json

TokenSamplesIntensityUse Case
subtle40.3Clean digital look
standard80.5Balanced blur
cinematic160.8Film-quality
action241.0Maximum blur
off00Sharp frames

Remotion Implementation

Per-Frame Motion Blur

import React from 'react';
import { useCurrentFrame, interpolate } from 'remotion';

// Calculate velocity-based blur
export const useMotionBlur = (
  currentPosition: number,
  previousPosition: number,
  intensity: 'subtle' | 'standard' | 'cinematic' | 'action' = 'standard'
) => {
  const velocity = Math.abs(currentPosition - previousPosition);
  const intensityMap = { subtle: 0.3, standard: 0.5, cinematic: 0.8, action: 1.0 };
  const threshold = 5;

  if (velocity < threshold) return 0;

  const blurAmount = interpolate(
    velocity,
    [threshold, threshold * 3],
    [0, intensityMap[intensity] * 10],
    { extrapolateRight: 'clamp' }
  );

  return blurAmount;
};

Smear Frame (Disney Technique)

// Disney-style smear frame for fast motion
export const SmearFrame: React.FC<{
  velocity: number;
  threshold: number;
  direction: 'horizontal' | 'vertical';
  children: React.ReactNode;
}> = ({ velocity, threshold, direction, children }) => {
  if (Math.abs(velocity) < threshold) {
    return <>{children}</>;
  }

  const stretchFactor = 1 + Math.abs(velocity) / 500;
  const clampedStretch = Math.min(stretchFactor, 3);

  const transform = direction === 'horizontal'
    ? `scaleX(${clampedStretch})`
    : `scaleY(${clampedStretch})`;

  return (
    <div style={{ transform, opacity: 0.8 }}>
      {children}
    </div>
  );
};

Quality Presets

export const motionBlurPresets = {
  preview: { samples: 4, quality: 'low', realtime: true },
  draft: { samples: 8, quality: 'medium', realtime: true },
  production: { samples: 16, quality: 'high', realtime: false },
  maximum: { samples: 24, quality: 'maximum', realtime: false }
};

Accessibility

// Disable motion blur for reduced motion preference
export const AccessibleMotionBlur: React.FC<{
  reducedMotion: boolean;
  children: React.ReactNode;
}> = ({ reducedMotion, children, ...blurProps }) => {
  if (reducedMotion) {
    return <>{children}</>;
  }
  return <MotionBlurElement {...blurProps}>{children}</MotionBlurElement>;
};

Common Mistakes

  1. Blur on text - Never blur text, destroys readability
  2. Static blur - Blur should respond to velocity
  3. Too much blur - Loses object definition
  4. Inconsistent FPS - Match blur to frame rate
  5. Performance hit - Multi-sample blur is expensive

Related Skills

  • frame-timing/ - Frame-accurate timing for blur
  • remotion/ - Remotion-specific implementations
  • accessibility/ - Reduced motion alternatives
  • testing-patterns/ - Testing motion blur output

See references/ for detailed multi-sample implementations.

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.