Skip to content
SkillModel-led3,396 tokens in use

Better Motion

Decides what should animate and builds it, with exact values for duration, easing, scale and distance and recipes for enters, exits, icon swaps, layout animation and drag.

12,497 stars on the repository MIT Licensejakubkrehel/skills · skills/better-motion
npx skills add jakubkrehel/skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing Better Motion costs

39tokens idle
3,396tokens in use
10,596tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Fair
  • Frontmatter8/15
  • Structure8/25
  • Examples0/15
  • Output15/15
  • Size15/15
  • Resources13/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity96
  • Maintenance52
  • Community48
  • Maturity24
  • Momentum40

Better Motion is an agent skill that starts by asking whether an element should move at all, and often answers no. When motion is right, it supplies the numbers: duration by element size, ease-out for state changes, springs with zero bounce for things with weight, a 0.96 press scale and short exits.

It covers CSS transitions and the Motion library, including AnimatePresence modes, shared layoutId animation, measured height and snapping drag. It keeps the project’s own motion tokens and curves wherever a deliberate convention exists.

What You Get

  • A duration table by element size, with exits shorter than enters, plus exact scale, distance and transform-origin rules for popups, modals and sheets
  • Spring settings written as a duration with bounce zero, and a CSS cubic-bezier stand-in where no motion library exists
  • Recipes for staggered entrances, exit animations, icon cross-fades, shared layoutId transitions, animated height and snapping drag
  • Reduced-motion gating for CSS, Tailwind and Motion, and a theme-switch transition suppression recipe
  • A slow-motion replay step and a detection table with fixes for patterns such as transition all and unkeyed AnimatePresence children

Common Use Cases

  • Adding enter and exit animation to a dropdown, tooltip or modal with correct origin and distance
  • Swapping an icon between states, such as copy to copied, with a cross-fade
  • Animating a container whose content changes height
  • Reviewing existing animations for transition all, keyframes on toggled state or springs on color changes

What Makes It Unique

It treats removing an animation as a valid fix and separates exact values from starting points. The press scale, icon cross-fade, stagger and spring bounce are exact, while the duration, scale and distance tables are desktop starting points to adjust by eye. It also requires replaying each animation at a tenth of its speed before calling it done.

Under The Hood

The skill is a SKILL.md with eight reference files covering transitions, enter and exit, icon transitions, layout animation, drag, performance, slow motion and reporting. It contains no scripts. The agent reads your components and styles, and in a browser it walks each state, reverses it mid-flight and replays it slowed down. A review leaves files untouched, and code changes happen when you ask for them.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers