framer-motion-animations

Implement scroll-triggered and entrance animations with Framer Motion variants and TypeScript typings.

21|2|Updated Nov 5, 2023
One-click install
npx skills add https://github.com/sgcarstrends/sgcarstrends --skill framer-motion-animations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: framer-motion-animations
Source: https://github.com/sgcarstrends/sgcarstrends/tree/main/.claude/skills/framer-motion-animations
Command: npx skills add https://github.com/sgcarstrends/sgcarstrends --skill framer-motion-animations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you implement consistent, accessible Framer Motion animations across the codebase to improve UX, performance, and accessibility.

Core Features & Use Cases

  • Scroll-triggered reveals: Implement reveal-on-scroll with reduced motion support.
  • Entrance/exit animations: Create polished transitions between UI states.
  • Staggered lists & number animation: Add motion to lists and counters with accessibility in mind.

Quick Start

Animate a section heading on scroll with a gentle fade-in.

Frequently Asked Questions about framer-motion-animations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add scroll-triggered animations to my React components?

Scroll-triggered animations reveal elements as they enter the viewport using Framer Motion's motion components and scroll event detection. Configure entrance animations with fade, scale, or slide variants, and pair with reduced-motion queries to respect user accessibility preferences. Framer Motion handles the timing and easing automatically.

Can I migrate from CSS animations or Intersection Observer to Framer Motion?

Yes. Framer Motion replaces manual CSS keyframes and Intersection Observer logic with declarative motion components. Define your animations as variants, apply them to motion elements, and control triggering via scroll listeners or layout effects. This centralizes animation logic and simplifies accessibility compliance.

How do I implement entrance animations and staggered list effects?

Entrance animations fade, slide, or scale elements in on page load or state change. Staggered animations sequence child items with configurable delays using Framer Motion's staggerContainer and item variants. Chain animations across lists to create polished, coordinated transitions while maintaining performance.

What's the best way to ensure animations are accessible?

Built-in accessibility for animations includes respecting the prefers-reduced-motion media query to disable or simplify motion for users with motion sensitivity. Framer Motion automatically skips animations when reduced motion is enabled. Pair this with semantic HTML and ARIA labels so animations enhance, not obstruct, usability.

Does Framer Motion work with TypeScript?

Yes. Framer Motion includes TypeScript typings out of the box. Define strongly-typed animation variants, motion component props, and custom hooks to catch errors at build time. TypeScript integration ensures consistent, type-safe animations across your codebase.

When should I use Framer Motion animations instead of CSS or other tools?

Use Framer Motion for complex, state-driven animations, scroll reveals, and staggered sequences that require JavaScript coordination. It excels at choreographed entrance/exit transitions and scroll-triggered effects with built-in reduced-motion support. CSS animations suit simple, isolated effects; Framer Motion scales to full-application motion design.