motion-blur-streak — Claude Code rule: what it does, how to install
motion-blur-streak emulates directional motion blur on sudden fly-ins or camera pushes. Smear fades right at the settle, so the item snaps into place completely sharp.
AGPL-3.0 ★ 78,316 updated 2026-10-24
.claude/rules/motion-blur-streak.mdWhat motion-blur-streak does
Scrubbed timelines cannot compute optical shutter blur during pauses. This rule recreates velocity streaks for fast entries via GSAP, syncing the smear directly to the position tween. It handles this either through an SVG <feGaussianBlur> filter on the travel axis or by spawning a trail of trailing ghost clones.
Velocity front-loads through steep easing like expo.out. Because blur magnitude rides along that same ease curve, maximum smear strikes at top speed and hits zero when the layer stops. Direct SVG attributes cannot be tweened natively in GSAP, so the rule drives a numeric proxy and applies values via setAttribute on each tick.
This approach belongs strictly on entrances and snap-ins. Using velocity blur on an element exiting mid-shot reads as an animation glitch.
What it helps with
- simulate directional velocity blur on fast text fly-ins
- animate the feGaussianBlur SVG filter using a GSAP proxy
- build a ghost trail using opacity-stepped element clones
- synchronize blur decay with the motion deceleration curve
Example prompts for the agent
- Add a fly-in headline with directional horizontal blur using the SVG filter path
- Create an entrance for the card using a three-ghost trail in GSAP
- Set up a camera push on the logo where streak blur hits zero at the settle
How to install motion-blur-streak
Manually: put the files in place
.claude/rules/motion-blur-streak.mdThe paths frontmatter field limits the files
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.cursor/rules/motion-blur-streak.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/motion-blur-streak.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/motion-blur-streak.mdManually: put the files in place
.clinerules/motion-blur-streak.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about motion-blur-streak
How to install motion-blur-streak in Claude Code?
Save the rule file to .claude/rules/motion-blur-streak.md inside your project root.
What does motion-blur-streak do?
It couples the velocity curve of a GSAP tween with a blur envelope. The animated element streaks into view at high speed and snaps completely sharp when it reaches its resting position.
How do the SVG filter and ghost trail options differ?
The SVG path creates a genuine optical smear on a single element via a GSAP proxy. The ghost trail duplicates the layer into semi-transparent clones, avoiding filter overhead and enabling stylized color streaks.