Skip to content
Back to skills

Motion Framer

ASecurity

Motion (formerly Framer Motion) — declarative animation library for React with layout animations, gestures, and spring physics.

  • 47 stars
  • 0 votes
  • 3 copies
  • 46 views
  • Added September 12, 2026
designreactspringperformance

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add skeletorflet/opencode-supreme-setup --skill motion-framer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Motion Framer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Motion Framer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/skeletorflet-motion-framer/badge)](https://www.skillsdirectory.com/skills/skeletorflet-motion-framer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: motion-framer
description: Motion (formerly Framer Motion) — declarative animation library for React with layout animations, gestures, and spring physics.
---

### motion components
`<motion.div>`, `<motion.span>`, etc. Props: `initial`, `animate`, `exit`, `transition`. Variants for named states. Spring defaults for natural motion.

### layout animations
`layout` prop auto-animates position/size changes. `layoutId` shared between elements for smooth morphing (magic motion). `LayoutGroup` for coordinating sibling animations.

### AnimatePresence
Wrap conditional mounts for enter/exit animations. `mode="wait"` for sequential. `mode="popLayout"` for layout shift animations. `onExitComplete` callback.

### gestures
`whileHover`, `whileTap`, `whileDrag`, `whileFocus`, `whileInView`. `drag="x"` for axis-locked drag. `dragConstraints` for boundaries. `onDragEnd` for callbacks.

### variants
Named animation objects. `variants={{ open: { opacity: 1 }, closed: { opacity: 0 } }}`. Pass to `initial`/`animate`/`exit`. Parent variants cascade to children with `transition={{ staggerChildren: 0.1 }}`.

### scroll-triggered
`useInView()` hook. `whileInView` prop. `useScroll()` for scroll progress. `useTransform()` to map scroll to motion values. `useSpring()` for smoothed scroll-driven motion.

### motion values
`useMotionValue(0)` — reactive value driving animations. `useSpring()` wraps it in spring. `useTransform(value, [input], [output])` for mapping. Read via `useMotionValueEvent()`.

### performance
Use `transform` instead of layout properties. Set `will-change` via `style={{ willChange: "transform" }}`. Use `layoutDependency` to limit recalculations. Prefer CSS animations for simple opacity/rotation.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.