Skill library

Agent skill Web motion

Framer Motion Animator

Design, implement or review motion on the web.

  • Animation
  • Framer Motion

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add https://github.com/patricio0312rev/skills/tree/main/frontend/framer-motion-animator --skill framer-motion-animator --agent claude-code --yes

Check this file in your project.claude/skills/framer-motion-animator/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add https://github.com/patricio0312rev/skills/tree/main/frontend/framer-motion-animator --skill framer-motion-animator

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use React with the project’s Motion package and a normal archive button. Plan the expected gesture threshold and a test record.

View operation manual

What this skill helps with

  • Design, implement or review motion on the web.

Good for

  • Web motion and transitions
Publisher
patricio0312rev
Controls
drag="x" · dragConstraints · dragElastic · onDragEnd · info.offset.x
Result
An intentional swipe and the keyboard button reach the same archive result.
Skill name
framer-motion-animator

Common pitfall

Avoid this prompt

Archive while the pointer is still moving and make swipe the only path to the action.

The end offset is a clearer intent signal, and an explicit button remains keyboard-operable.

Use these steps

  1. Inspect the project and source
  2. Apply the motion recipe
  3. Verify behavior and fallback

Project walkthrough

Add a reversible short drag and explicit archive action to an original note row.

Add a reversible short drag and explicit archive action to an original note row.

  1. Inspect the project and source

    Use React with the project’s Motion package and a normal archive button. Plan the expected gesture threshold and a test record.

    Prompt · Step 1
    Use Framer Motion Animator on [my note row]. Read Gesture Animations in SKILL.md. Make a local test note and identify its archive action. Define a 100px leftward release threshold and an accessible button for the same operation.
  2. Apply the motion recipe

    Add a reversible short drag and explicit archive action to an original note row.

    Prompt · Step 2
    Use drag="x" with bounded constraints and enough elastic movement to test intent. In onDragEnd commit archive only when info.offset.x < -100. Let smaller drags return and retain vertical touch scrolling. Disable drag motion under reduced motion and keep the button and status response.
  3. Verify behavior and fallback

    An intentional swipe and the keyboard button reach the same archive result.

    • An intentional swipe and the keyboard button reach the same archive result.
    Prompt · Step 3
    Drag a short distance and confirm no archive, then release past the threshold and confirm one archive. Reset the test note and use Tab plus Enter in reduced motion. Check the same confirmation appears.

Implementation lookup

Compare the implementation with the recipe and its expected outcome.

Inspect the implementation controlsVerify
Command or reference
drag="x" · dragConstraints · dragElastic · onDragEnd · info.offset.x
Examples
An intentional swipe and the keyboard button reach the same archive result.

FAQ

What should I prepare first?

Use React with the project’s Motion package and a normal archive button. Plan the expected gesture threshold and a test record.

How do I verify the result?

An intentional swipe and the keyboard button reach the same archive result.