Communitygithub.com

NeverSight/learn-skills.dev

Motion.dev (Framer Motion 후속)으로 React, Next.js, Svelte, Astro 프로젝트에 120fps GPU 가속 애니메이션을 생성합니다. 사용자가 애니메이션, 모션, 스크롤 효과, 패럴랙스, 히어로 애니메이션, 제스처, 드래그 인터랙션, 스프링 물리, whileHover 효과, whileInView 애니메이션, 애니메이션 UI, 마이크로 인터랙션, 페이지 전환, 레이아웃 애니메이션을 요청할 때 사용하세요. 접근성(prefers-reduced-motion)과 성능 검증(≥60fps)을 포함한 프로덕션 TypeScript/JSX 코드를 생성합니다. 스프링 물리와 자연스러운 타이밍을 사용하는 진입 애니메이션, 제스처 상호작용(호버/탭/드래그), 스크롤 기반 표시, 레이아웃 전환을 지원합니다.

learn-skills.dev란 무엇인가요?

이 스킬은 Motion.dev를 활용하여 React, Next.js, Svelte, Astro 프로젝트에 고성능 GPU 가속 애니메이션을 구현하는 AI 어시스턴트입니다. Framer Motion의 후속 라이브러리로 120fps의 부드러운 성능을 제공하며, 애플/존 아이브 디자인 원칙에 따라 목적성, 부드러움, 접근성, 성능, 우아함, 일관성을 중시합니다. 워크플로는 '명확화 → 계획 → 구현 → 검증'의 4단계로 구성되며, 진입 애니메이션, 제스처(호버/탭/드래그), 스크롤 기반 표시 및 패럴랙스, 레이아웃 전환 등 다양한 패턴을 지원합니다. 각 패턴에 대해 템플릿과 복사-붙여넣기 가능한 코드 예제를 제공하며, prefers-reduced-motion 대체, 키보드 접근성, 60fps 이상의 성능 검증을 자동화하여 프로덕션에 바로 투입 가능한 품질을 보장합니다. CSS 전용 전환이나 정적 사이트, Vue(별도 패키지 필요), 복잡한 SVG/Canvas 애니메이션에는 사용하지 말아야 합니다.

지원 대상✓Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/NeverSight/learn-skills.dev/tree/HEAD/data/skills-md/199-biotechnologies/motion-dev-animations-skill/motion-dev-animations

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

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

문서

Motion Dev 애니메이션

Motion.dev - 월 1,000만+ 다운로드, Framer Motion 후속 React, Next.js, Svelte, Astro, Vue를 위한 120fps GPU 가속 애니메이션

목적

Motion.dev를 사용해 애플/존 아이브 원칙을 따르는 프로덕션급 애니메이션 생성: 목적성(기능에 봉사) | 매끄러움(120fps) | 접근성(움직임 줄이기) | 성능(GPU 전용) | 우아함(미묘함) | 일관성(통일된 타이밍)

사용 시기

✅ 사용해야 할 때:

  • React 19+/Next.js 15+/Svelte 5+/Astro 4+ 애니메이션 구현
  • 스크롤 효과(패럴랙스, 표시), 제스처(호버, 드래그, 탭), 레이아웃 애니메이션
  • 히어로 섹션, 카드, 60fps+ 성능이 필요한 마이크로 인터랙션
  • 스프링 물리, 자연스러운 모션, 접근성이 필요한 프로젝트

❌ 사용하지 말아야 할 때:

  • CSS 전용 전환(네이티브 transition 속성 사용)
  • JavaScript 프레임워크 없는 정적 사이트
  • Vue 프로젝트(motion-v 패키지 사용 - 다른 API)
  • SVG/Canvas 복잡한 애니메이션(GSAP이 더 적합)
  • 폼 전용 CRUD 앱(과잉)

워크플로: 명확화 → 계획 → 구현 → 검증

1단계: 요구사항 명확화

프로젝트 맥락과 애니메이션 목표 파악:

  • 프레임워크(React 19+, Next.js 15+, Svelte 5+, Astro 4+)
  • 애니메이션 유형(진입, 제스처, 스크롤, 레이아웃)
  • 디자인 목표(미묘함, 두드러짐, 유쾌함, 전문적)
  • 성능 제약(대상 기기, 번들 제한, 접근성 요구사항)
  • 트리거 메커니즘(마운트, 뷰포트, 사용자 상호작용)

2단계: 애니메이션 전략 계획

구현 접근 방식 정의:

  • 애니메이션할 컴포넌트(헤더, 카드, 버튼, 섹션)
  • 모션 패턴(페이드, 슬라이드, 스케일, 스프링, 패럴랙스)
  • 타이밍 사양(지속 시간, 지연, 스태거 간격)
  • 물리 매개변수(stiffness: 300-400, damping: 20, mass: 1)
  • 접근성 대체(prefers-reduced-motion 대안)

3단계: 단계별 구현

점진적으로 애니메이션 구축:

  • 설정: Motion.dev 설치, 임포트 구성, 컴포넌트 구조 준비
  • 핵심 애니메이션: 모션 속성 적용(initial, animate, transition)
  • 세부 조정: 자연스러운 느낌을 위한 타이밍, 이징 곡선, 스프링 물리 조정
  • 접근성: 움직임 줄이기 감지 추가, 키보드 탐색 지원
  • 최적화: GPU 가속 확인, 번들 크기 최소화, 성능 테스트

4단계: 품질 기준 검증

요구사항 대비 확인:

  • 성능: ≥60fps(Chrome DevTools → Performance 탭)
  • 레이아웃 안정성: CLS = 0(Lighthouse 감사)
  • 접근성: prefers-reduced-motion 준수(시스템 설정 테스트)
  • 키보드 탐색: 모든 상호작용 요소가 키보드로 접근 가능
  • 모바일 반응형: 터치 친화적 제스처, iOS/Android에서 테스트

애니메이션 패턴 결정 트리

INPUT: 무엇이 애니메이션되어야 하나?

├─ 진입(페이지 로드, 마운트)
│   → 패턴: initial={{opacity: 0, y: 20}} animate={{opacity: 1, y: 0}}
│   → 타이밍: 0.6-0.8s, ease: [0.22, 1, 0.36, 1]
│   → 스태거: 요소 간 0.1-0.2s
│   → 예제: ./examples/hero-fade-up.md
│
├─ 제스처(호버, 탭, 드래그)
│   → 패턴: whileHover={{scale: 1.05}}, whileTap={{scale: 0.95}}
│   → 물리: 스프링(stiffness: 300-400, damping: 20)
│   → 타이밍: 즉각 응답(지속 시간 없음)
│   → 예제: ./examples/card-hover.md, ./examples/magnetic-button.md
│
├─ 스크롤(표시, 패럴랙스)
│   → 패턴: whileInView + viewport 또는 useScroll + useTransform
│   → 트리거: viewport={{once: true, amount: 0.3}}
│   → 성능: Transform/opacity만 사용
│   → 예제: ./examples/scroll-reveal.md, ./examples/parallax-layers.md
│
└─ 레이아웃(재정렬, 확장)
    → 패턴: layout prop(자동 FLIP)
    → 공유: layoutId="id"로 형태 변형
    → 주의: Transform만 애니메이션

API 빠른 참조

컴포넌트/훅사용법사용 시기
motion.div<motion.div animate={{x: 100}}>기본 애니메이션
whileHoverwhileHover={{scale: 1.05}}호버 상태(0.2-0.3s)
whileTapwhileTap={{scale: 0.95}}클릭 피드백
whileInViewwhileInView={{opacity: 1}}스크롤 표시
dragdrag="x" dragConstraints드래그 가능 요소
layout<motion.div layout />자동 FLIP 애니메이션
useScroll스크롤 진행 추적패럴랙스, 진행 막대
useTransform값 매핑스크롤 연결 효과
useSpring스프링 물리부드러운 값 변경
useInView뷰포트 감지애니메이션 트리거

전체 API: 완전한 API 참조 참조

프레임워크 통합

프레임워크임포트컴포넌트종료 애니메이션
React/Next.js"motion/react"<motion.div><AnimatePresence>
Svelte"motion"바닐라 APIN/A
Astro"motion"클라이언트 스크립트N/A
Vue"motion-v"<motion.div>React와 유사

품질 기준

카테고리요구사항확인 방법
성능≥60fpsChrome DevTools → Performance
GPU 가속transform/opacity만width/height/left/top 없음
번들<50KBwebpack-bundle-analyzer
접근성prefers-reduced-motion시스템 설정 테스트
모바일터치 친화적iOS/Android 테스트
레이아웃 이동CLS = 0Lighthouse 감사

예제 라이브러리(점진적 로딩)

애니메이션 유형에 따라 필요 시 로드:

히어로 섹션

  • 히어로 페이드 업 - 클래식 애플 스타일 진입
  • 히어로 스태거 - 조율된 요소
  • 히어로 분할 텍스트 - 문자 표시

스크롤 효과

제스처 및 상호작용

레이아웃 애니메이션

  • 목록 재정렬 - 드래그하여 재정렬 FLIP
  • 아코디언 - 확장/축소
  • 탭 전환 - 공유 레이아웃

전체 예제: ./examples/ 디렉토리의 모든 파일

참조 문서(필요 시 로드)

  • 완전한 API 참조 - 모든 컴포넌트, 훅, props
  • 스프링 물리 가이드 - stiffness, damping, mass 조정
  • 성능 최적화 - GPU, will-change, 지연 로딩
  • 접근성 가이드 - 움직임 줄이기, 키보드, 스크린 리더
  • 문제 해결 - 일반적인 문제, 해결책
  • Framer Motion 마이그레이션 - 업그레이드 가이드

템플릿(프로덕션 준비 완료)

설치

# React/Next.js/Svelte/Astro
npm install motion

# Vue
npm install motion-v

일반 패턴(복사-붙여넣기 준비 완료)

패턴 1: 페이드 업 진입

<motion.div
  initial={{ opacity: 0, y: 20 }}
  animate={{ opacity: 1, y: 0 }}
  transition={{ duration: 0.6, ease: [0.22, 1, 0.36, 1] }}
/>

패턴 2: 호버 카드

<motion.div
  whileHover={{ y: -8, boxShadow: "0 20px 40px rgba(0,0,0,0.12)" }}
  transition={{ type: "spring", stiffness: 300, damping: 20 }}
/>

패턴 3: 스크롤 표시

<motion.div
  initial={{ opacity: 0, y: 50 }}
  whileInView={{ opacity: 1, y: 0 }}
  viewport={{ once: true, amount: 0.3 }}
/>

추가 패턴: 스태거 목록, 종료 애니메이션, 레이아웃 전환 → ./examples/ 디렉토리

오류 처리

문제해결책
애니메이션이 트리거되지 않음initial ≠ animate 값인지 확인
성능 저하transform/opacity만 사용 + will-change CSS
레이아웃 이동명시적 크기 설정, layout prop 사용
종료가 작동하지 않음<AnimatePresence>로 래핑, key prop 추가

구현 모범 사례

  1. 단순하게 시작 → 페이드 + 슬라이드로 시작, 점진적으로 복잡성 추가
  2. 변형 추출 → 유지보수를 위해 애니메이션 상태를 명명된 변형으로 정의
  3. 스프링 물리 선호 → 기본적으로 스프링 전환 사용(tween보다 자연스러움)
  4. 목록 항목 스태거 → 리듬과 계층을 위해 staggerChildren(0.1-0.2s) 사용
  5. 모바일 철저히 테스트 → iOS/Android 기기에서 터치 제스처, 성능 확인
  6. 움직임 줄이기 포함 → 항상 prefers-reduced-motion 대체 애니메이션 제공
  7. 성능 프로파일링 → Chrome DevTools Performance 탭 사용, ≥60fps 목표

디자인 철학(애플/존 아이브 원칙)

모든 애니메이션에 다음 디자인 원칙 적용:

  • 단순성: 200-400ms 지속 시간 사용, 동시 모션 최소화, transform 속성 선호
  • 자연스러운 물리: 스프링 기반 전환 구현, 선형 이징 피하기, 질량 기반 움직임 적용
  • 목적 있는 모션: 사용자 주의 유도, 상호작용 피드백 제공, 시각적 계층 구축
  • 우아한 절제: "덜이 더다" 원칙 적용, 일관된 타이밍 유지, 사용자 모션 선호도 존중

검증

구조화된 출력 검증을 위해 다음 참조:

메타데이터

버전: 3.0.0(연구 기반 최적화) 최적화: 명령형 언어, 퓨샷 패턴(3개 예제), 계층적 복잡성, 점진적 로딩 토큰 효율: 핵심 87% 감소(15K → 2K) + 자동 캐싱 Motion.dev: v11+ 프레임워크: React 19+, Next.js 15+, Svelte 5+, Astro 4+, Vue 3+ 연구: arXiv 2402.07927v1, 2211.01910, 2310.14735v5, PubMed 40334089 라이선스: MIT

Individual skills in this repo

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

NeverSight/learn-skills.dev

Use when generating or modifying Remotion video code, creating demo videos, or working with the demo-video/ directory

NeverSight/learn-skills.dev

Create AI avatar and talking head videos via inference.sh CLI. Recommended: P-Video-Avatar (fastest, cheapest, built-in TTS). Also: OmniHuman, Fabric, PixVerse. Audio: Inworld TTS-2 (100+ languages, emotion steering for characters), ElevenLabs, Kokoro. Capabilities: audio-driven avatars, text-to-avatar, lipsync videos, talking head generation, virtual presenters, UGC content. Use for: AI presenters, explainer videos, virtual influencers, dubbing, marketing videos, UGC ads, gaming avatars, NPC dialogue. Triggers: ai avatar, talking head, lipsync, avatar video, virtual presenter, ai spokesperson, audio driven video, heygen alternative, synthesia alternative, talking avatar, lip sync, video avatar, ai presenter, digital human, ugc, ugc video, ugc ad, avatar ugc

NeverSight/learn-skills.dev

Create AI marketing videos for ads, promos, product launches, and brand content. Models: Veo, Seedance, Wan, FLUX for visuals, Kokoro for voiceover. Types: product demos, testimonials, explainers, social ads, brand videos. Use for: Facebook ads, YouTube ads, product launches, brand awareness. Triggers: marketing video, ad video, promo video, commercial, brand video, product video, explainer video, ad creative, video ad, facebook ad video, youtube ad, instagram ad, tiktok ad, promotional video, launch video

NeverSight/learn-skills.dev

Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse

NeverSight/learn-skills.dev

ElevenLabs automatic dubbing - translate and dub audio/video into 29 languages while preserving speaker voice via inference.sh CLI. Capabilities: auto speaker detection, voice-preserving translation, video dubbing, audio localization. Use for: content localization, video translation, multilingual content, international distribution. Triggers: dubbing, dub video, translate audio, video translation, audio translation, localize content, elevenlabs dubbing, eleven labs dub, multilingual dub, voice translation, auto dub, language dub, content localization

NeverSight/learn-skills.dev

Explainer video production guide: scripting, voiceover, visuals, and assembly. Covers script formulas, pacing rules, scene planning, and multi-tool pipelines. Use for: product demos, how-it-works videos, onboarding videos, social explainers. Triggers: explainer video, how to make explainer, product video, demo video, video production, video script, animated explainer, product demo video, tutorial video, onboarding video, walkthrough video, video pipeline

NeverSight/learn-skills.dev

Still-to-video conversion guide: model selection, motion prompting, and camera movement. Covers Wan 2.5 i2v, Seedance, Fabric, Grok Video with when to use each. Use for: animating images, creating video from stills, adding motion, product animations. Triggers: image to video, i2v, animate image, still to video, add motion to image, image animation, photo to video, animate still, wan i2v, image2video, bring image to life, animate photo, motion from image

NeverSight/learn-skills.dev

Generate talking head avatar videos with Pruna P-Video-Avatar via inference.sh CLI. Turn a portrait image into a realistic speaking video with built-in TTS. 18x faster and 6x cheaper than competitors. Models: P-Video-Avatar, P-Image (for portrait generation). Capabilities: text-to-avatar, audio-driven avatars, 30 voices, 10 languages, 720p/1080p, built-in TTS, dynamic backgrounds, full-body control. Use for: AI presenters, product demos, explainer videos, virtual influencers, marketing, education, multilingual content, UGC, gaming avatars. Triggers: avatar video, talking head, ai avatar, p-video-avatar, pruna avatar, video avatar, ai presenter, digital human, virtual presenter, lipsync, talking avatar, ai spokesperson, heygen alternative, synthesia alternative, veed alternative, fabric alternative, omnihuman alternative

NeverSight/learn-skills.dev

Generate videos with Pruna P-Video and WAN models via inference.sh CLI. Models: P-Video, WAN-T2V, WAN-I2V. Capabilities: text-to-video, image-to-video, audio support, 720p/1080p, fast inference. Pruna optimizes models for speed without quality loss. Triggers: pruna video, p-video, pruna ai video, fast video generation, optimized video, wan t2v, wan i2v, economic video generation, cheap video generation, pruna text to video, pruna image to video

NeverSight/learn-skills.dev

Render videos from React/Remotion component code via inference.sh. Pass TSX code, get MP4. Supports all Remotion APIs: useCurrentFrame, useVideoConfig, spring, interpolate, AbsoluteFill, Sequence. Configurable resolution, FPS, duration, codec. Use for: programmatic video generation, animated graphics, motion design, data-driven videos, React animations to video. Triggers: remotion, render video from code, tsx to video, react video, programmatic video, remotion render, code to video, animated video, motion graphics code, react animation video

NeverSight/learn-skills.dev

Video ad creation with exact platform-specific specs for TikTok, Instagram, YouTube, Facebook, LinkedIn. Covers dimensions, duration limits, AIDA framework, and caption requirements. Use for: video ads, social media ads, paid media creative, video marketing, ad production. Triggers: video ad, social media ad, tiktok ad, instagram ad, youtube ad, facebook ad, linkedin ad, video creative, ad specs, paid media, video marketing, ad production, reels ad, stories ad, pre roll, bumper ad

NeverSight/learn-skills.dev

Best practices and techniques for writing effective AI video generation prompts. Covers: Veo, Seedance, Wan, Grok, Kling, Runway, Pika, Sora prompting strategies. Learn: shot types, camera movements, lighting, pacing, style keywords, negative prompts. Use for: improving video quality, getting consistent results, professional video prompts. Triggers: video prompt, how to prompt video, veo prompts, video generation tips, better ai video, video prompt engineering, video prompt guide, video prompt template, ai video tips, video prompt best practices, video prompt examples, cinematography prompts

NeverSight/learn-skills.dev

YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A/B testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image

NeverSight/learn-skills.dev

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

NeverSight/learn-skills.dev

Configure and use the hosted YouTube Data MCP end-to-end with minimal user input. Use when users want the agent to verify Node.js and `npx`, configure MCP server config (Windows/macOS, Cursor/Codex/OpenClaw/OpenCode), request API key at setup time, run post-install capability discovery (`tools/list` and `get_patch_notes`), and then strongly recommend helper skill and Python setup for full local document and spreadsheet workflows.

NeverSight/learn-skills.dev

Static artifact craft skill for self-contained HTML/CSS/JS documents: docs, sheets, dashboards, explainers, slides, tools, and landing pages. Use when the user asks for a durable, openable, shareable web deliverable they'll keep or hand off — a report, a dashboard, a slide deck, a data table, a page. Local folder first, temporary public link via tunnel (localhost.run), optional durable publish to Surge, GitHub Pages, or Cloudflare. Not for quick look renders, inline snippets, or throwaway scratch. Not for SPA frameworks, backend APIs, database apps, or production product UI.

NeverSight/learn-skills.dev

FFmpeg commands for video/audio conversion, trimming, compression, and processing. Use when user mentions "ffmpeg", "convert video", "compress video", "extract audio", "trim video", "gif from video", "video codec", "transcode", "screen recording", "merge videos", "video to mp4", "reduce file size", or any media processing task.

NeverSight/learn-skills.dev

Vim keybindings, motions, text objects, and operators for efficient text editing. Use when user asks about "vim commands", "vim motions", "text objects", "vim keybindings", "vim cheat sheet", "learn vim", "vim in VS Code", or any Vim editing tasks.

NeverSight/learn-skills.dev

Download YouTube videos, extract/proofread/translate subtitles, and render them onto video. Use whenever the user asks to download a YouTube video with subtitles, translate video subtitles to Chinese, add subtitles/burn subtitles to a video, or do ASR transcription on video audio. Covers the full pipeline: video download → subtitle extraction → proofreading → translation → SRT generation → subtitle rendering. Also use for "下载视频加字幕", "视频翻译字幕", "把字幕烧录到视频中". For pure subtitle file creation without rendering (just SRT output), this skill handles that too — stop before Phase 5.

NeverSight/learn-skills.dev

Grok Build ONLY. Turn a 2D character still into smooth animation sprites via image_gen/image_edit base → image_to_video (6s/10s run-in-place) → ffmpeg frames → magenta chroma-key → dense sampled sprites (strip/grid/GIF). Use when the user wants video-to-sprite, motion capture from generated video, smoother run/walk cycles from dense frames, or runs /video2dsprite. Do NOT use on Codex/Claude — only Grok Build has image_to_video. Prefer generate2dsprite for crisp pixel sheets without video.

관련 스킬