Communitygithub.com

YepAPI/skills - Framer Motion 애니메이션

Framer Motion을 사용한 전환, 스크롤 애니메이션, 레이아웃 애니메이션을 지원하는 스킬입니다.

skills - Framer Motion 애니메이션란 무엇인가요?

이 스킬은 React 프로젝트에서 Framer Motion을 활용한 고성능 애니메이션을 구현하는 방법을 제공합니다. 개발자는 `motion.div` 컴포넌트와 `initial`, `animate`, `exit` props를 사용하여 요소의 마운트/언마운트 애니메이션을 쉽게 정의할 수 있습니다. `AnimatePresence`는 조건부 렌더링 시 부드러운 전환을 보장하며, `layout` prop을 통해 자동 레이아웃 애니메이션(재정렬, 크기 변경)을 지원합니다. 스크롤 애니메이션은 `useScroll()`과 `useTransform()` 훅을 결합하여 패럴랙스 효과와 스크롤 트리거 등장을 구현하며, `useReducedMotion()` 훅을 통해 접근성 요구사항인 `prefers-reduced-motion`을 존중합니다. 성능 최적화를 위해 `transform`과 `opacity` 속성만 애니메이션하고, UI 전환은 200-400ms, 페이지 전환은 400-800ms의 짧은 지속 시간을 권장합니다. 자식 요소의 지연 애니메이션은 `variants`의 `staggerChildren`을 사용하여 리스트 애니메이션을 구현합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YepAPI/skills/tree/HEAD/skills/animations

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

애니메이션

규칙

  • React에서 Framer Motion 사용 — motion.div와 initial, animate, exit props 사용
  • AnimatePresence로 마운트/언마운트 애니메이션 처리 — 조건부 렌더링을 감싸기
  • layout prop으로 자동 레이아웃 애니메이션 (재정렬, 크기 변경)
  • 스크롤 애니메이션: 패럴랙스 및 스크롤 트리거 등장을 위해 useScroll() + useTransform() 사용
  • 축소 모션 존중: useReducedMotion() 훅 사용 — 필수적이지 않은 애니메이션 비활성화
  • 자식 지연 애니메이션: 리스트 애니메이션을 위해 staggerChildren이 포함된 variants 사용
  • 성능: transform과 opacity만 애니메이션 — width, height, margin은 절대 애니메이션하지 않음
  • 지속 시간 짧게 유지: UI 전환 200-400ms, 페이지 전환 400-800ms

피해야 할 것

  • 레이아웃 속성(width, height, top, left) 애니메이션 — transform: translate/scale 사용
  • UI 인터랙션에서 1초를 초과하는 애니메이션 — 느리게 느껴짐
  • 사용자 트리거 없이 애니메이션 자동 재생 — 혼란을 줌
  • prefers-reduced-motion 무시 — 접근성 요구사항

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

YepAPI/skills

WCAG 2.1 AA — semantic HTML, keyboard navigation, screen readers.

YepAPI/skills

Experiment setup, variant splitting, statistical significance, and feature flag integration.

YepAPI/skills

CRUD generators, data tables, user management, role-based access, and bulk operations.

YepAPI/skills

Monitor what ChatGPT and Gemini say about your brand using YepAPI.

YepAPI/skills

Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

YepAPI/skills

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

YepAPI/skills

cmdk integration, Cmd+K trigger, fuzzy search, grouped actions, keyboard navigation, and dynamic action registration.

YepAPI/skills

Content planning with trend and sentiment data from YepAPI.

YepAPI/skills

Content calendar, keyword-driven planning, and content briefs.

YepAPI/skills

Theme switching with CSS variables, system preference detection, next-themes, and persistence.

YepAPI/skills

Threaded comments, @mentions, reactions, moderation queue, optimistic UI, and cursor pagination.

YepAPI/skills

Competitive analysis between domains using YepAPI.

YepAPI/skills

Layout grids, KPI cards, data tables with sorting/filtering, sidebar navigation, and responsive breakpoints.

YepAPI/skills

Data encryption — TLS everywhere, AES-256-GCM for PII, bcrypt passwords, encrypted backups.

YepAPI/skills

Chart patterns with Recharts/Nivo/D3, responsive containers, color scales, and accessibility.

YepAPI/skills

Drizzle schema definition, push vs migrate, type-safe queries, relations, transactions, and prepared statements.

YepAPI/skills

Upload handling, resize/compress, CDN delivery, blur placeholders, and next/image patterns.

YepAPI/skills

Local business and Google Maps research using YepAPI.

YepAPI/skills

Cursor-based pagination, IntersectionObserver, virtualized lists with @tanstack/react-virtual, and scroll position restoration.

YepAPI/skills

Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.

관련 스킬