Communitygithub.com

David-Li0406/meta-skill-evloving

Motion 라이브러리를 사용하여 애니메이션을 구현합니다. 컴포넌트에 모션, 전환, 제스처, 스크롤 효과 또는 대화형 애니메이션을 추가할 때 사용합니다. 개념적 논의가 아닌 구현 요청에 의해 트리거됩니다.

meta-skill-evloving란 무엇인가요?

이 스킬은 Motion 라이브러리(https://motion.dev)를 사용하여 React 컴포넌트에 고성능 애니메이션을 구현하는 방법을 제공합니다. 스프링 물리학 기반의 자연스러운 전환, 드래그 및 호버와 같은 제스처 상호작용, 레이아웃 애니메이션, 스크롤 연동 효과, 자식 요소 스태거 효과, 진입/퇴장 애니메이션 등 핵심 패턴을 다룹니다. GPU 가속 변환(transform)과 불투명도(opacity) 애니메이션에 중점을 두고 성능 모범 사례를 제시하며, 접근성을 위해 `prefers-reduced-motion`을 자동으로 처리합니다. 스킬은 또한 마이크로 인터랙션, 패널 전환, 페이지 전환에 대한 타이밍 가이드라인을 제공하고, 애니메이션이 적합한 경우와 부적합한 경우를 명확히 구분하여 실용적인 디자인 원칙을 강조합니다. 모든 예제는 React 18+에서 Motion을 사용한 실제 구현 코드로 제공됩니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/David-Li0406/meta-skill-evloving/tree/HEAD/skill-flow/data/skills-refined-36k/skillsmp/animation

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

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

문서

Motion을 이용한 애니메이션 구현

모든 애니메이션 작업에는 Motion 라이브러리(https://motion.dev)를 사용하세요.

빠른 시작

React (기본):

import { motion } from "motion/react"

// 기본 애니메이션
<motion.div animate={{ opacity: 1, y: 0 }} />

// 전환 설정 포함
<motion.div
  animate={{ x: 100 }}
  transition={{ type: "spring", stiffness: 100 }}
/>

핵심 패턴

1. 스프링 물리학 (권장)

<motion.div
  animate={{ scale: 1 }}
  transition={{
    type: 'spring',
    stiffness: 260,
    damping: 20,
  }}
/>

스프링 프리셋:

  • 부드러운: stiffness: 120, damping: 14
  • 흔들리는: stiffness: 180, damping: 12
  • 딱딱한: stiffness: 300, damping: 20

2. 제스처 상호작용

<motion.div
  whileHover={{ scale: 1.05 }}
  whileTap={{ scale: 0.95 }}
  drag="x"
  dragConstraints={{ left: -100, right: 100 }}
/>

3. 레이아웃 애니메이션

<motion.div layout>{/* 위치/크기가 변하는 콘텐츠 */}</motion.div>

4. 스크롤 연동 효과

import { useScroll, useTransform } from "motion/react"

const { scrollYProgress } = useScroll()
const opacity = useTransform(scrollYProgress, [0, 1], [1, 0])

<motion.div style={{ opacity }} />

5. 자식 요소 스태거

<motion.ul
  variants={{
    visible: { transition: { staggerChildren: 0.07 } },
  }}
>
  {items.map((item) => (
    <motion.li
      key={item}
      variants={{
        hidden: { opacity: 0, y: 20 },
        visible: { opacity: 1, y: 0 },
      }}
    />
  ))}
</motion.ul>

6. 진입/퇴장 애니메이션

import { AnimatePresence } from 'motion/react';

<AnimatePresence>
  {show && <motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} />}
</AnimatePresence>;

애니메이션 속성

변환 (GPU 가속, 성능 우수):

  • x, y, z - 이동
  • scale, scaleX, scaleY - 크기 조절
  • rotate, rotateX, rotateY, rotateZ - 회전
  • skew, skewX, skewY - 기울이기

시각적 (성능에 영향을 줄 수 있으므로 신중하게 사용):

  • opacity
  • background, backgroundColor
  • color
  • borderRadius

SVG 특화:

  • pathLength - 경로 그리기 애니메이션용
  • pathOffset - 경로 오프셋
  • pathSpacing - 대시 간격

접근성

항상 사용자 선호도를 존중하세요:

<motion.div
  animate={{ x: 100 }}
  transition={{
    type: 'spring',
    // 사용자가 모션 감소를 선호하면 애니메이션 비활성화
    duration: 0,
  }}
/>

Motion은 prefers-reduced-motion을 자동으로 처리합니다. 스프링은 즉시 전환됩니다.

성능 팁

  1. 가능하면 변환/불투명도만 애니메이션 처리 (GPU 가속)
  2. layout prop 사용 - 너비/높이를 수동으로 애니메이션하지 마세요
  3. 스크롤 중 애니메이션 피하기
  4. 복잡한 애니메이션에는 will-change: transform 사용 (Motion이 처리)
  5. 동시 애니메이션 제한 - 한 번에 모두 실행하지 말고 스태거 효과 사용

디자인 원칙 (간략)

애니메이션을 사용해야 할 때

  • 상태 전환 (로딩 → 성공)
  • 공간적 변화 (뷰 진입/퇴장)
  • 주의 끌기 (아껴서)
  • 사용자 동작 확인

애니메이션을 사용하지 말아야 할 때

  • 첫 번째 발생 후 반복되는 동작
  • 성능이 중요한 경로
  • 사용자 제어 스크롤
  • 모든 단일 상호작용 (절제가 중요)

타이밍 가이드라인

  • 마이크로 상호작용: 150-250ms
  • 패널/모달 전환: 200-300ms
  • 페이지 전환: 300-500ms
  • 스프링: 물리학이 지속 시간 결정

스프링 vs 지속 시간

  • 스프링 사용: 상호작용 요소, 제스처, 레이아웃 변경
  • 지속 시간 사용: 의도적인 시퀀스, 안무, 로더

자세한 애니메이션 철학은 principles.md를 참조하세요.

일반 패턴

로딩 상태:

<motion.div
  animate={{ rotate: 360 }}
  transition={{
    repeat: Infinity,
    duration: 1,
    ease: 'linear',
  }}
/>

토스트 알림:

<motion.div
  initial={{ x: 400, opacity: 0 }}
  animate={{ x: 0, opacity: 1 }}
  exit={{ x: 400, opacity: 0 }}
  transition={{ type: 'spring', stiffness: 300, damping: 30 }}
/>

드로어:

<motion.div
  initial={{ x: '-100%' }}
  animate={{ x: 0 }}
  exit={{ x: '-100%' }}
  transition={{ type: 'spring', damping: 25 }}
/>

아코디언:

<motion.div
  animate={{ height: isOpen ? 'auto' : 0 }}
  transition={{ type: 'spring', bounce: 0 }}
  style={{ overflow: 'hidden' }}
/>

리소스

빠른 문제 해결

애니메이션이 실행되지 않나요?

  • 요소가 조건부로 렌더링되는지 확인 (AnimatePresence 사용)
  • 목표 값이 초기 값과 다른지 확인
  • CSS가 재정의하는지 확인 (예: !important)

성능 문제가 있나요?

  • 변환 및 불투명도만 사용
  • 치수 애니메이션 대신 layout prop 사용
  • 브라우저 DevTools 성능 탭 확인

레이아웃 애니메이션이 깜빡이나요?

  • 부모에 position: relative가 있는지 확인
  • 필요한 경우 부모와 자식 모두에 layout 추가
  • 충돌하는 CSS 전환 확인

참고 사항

  • Motion은 MIT 라이선스, 프로덕션 준비 완료
  • 하이브리드 엔진: 120fps, GPU 가속
  • TypeScript 지원 내장
  • 트리 셰이커블로 최적의 번들 크기 제공
  • React 18+ (Suspense 포함)와 호환

Individual skills in this repo

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

David-Li0406/meta-skill-evloving

Browser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website", "log into", or any browser interaction request.

David-Li0406/meta-skill-evloving

Create technical diagrams using Mermaid syntax for architecture, sequences, ERDs, flowcharts, and state machines. Use for visualizing system design, data flows, and processes. Triggers: diagram, mermaid, architecture diagram, sequence diagram, flowchart, ERD, entity relationship, state diagram, C4 model, component diagram, visualize, draw.

David-Li0406/meta-skill-evloving

Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks

David-Li0406/meta-skill-evloving

Complete color manipulation and green screen effects system. PROACTIVELY activate for: (1) Green screen/chromakey removal, (2) Color grading with LUTs, (3) Color correction (levels, curves, white balance), (4) Colorkey/color removal effects, (5) Hue/saturation manipulation, (6) Color space conversions (BT.709, BT.2020, HDR), (7) Color isolation effects, (8) Teal and orange look, (9) Vintage/film looks, (10) Color keying for transparency. Provides: chromakey and colorkey filters, LUT application (lut3d), curves and levels adjustment, color balance, selective color manipulation, color space handling, HDR tone mapping, professional color grading chains.

David-Li0406/meta-skill-evloving

Convert files and office documents to Markdown. Supports PDF, DOCX, PPTX, XLSX, images (with OCR), audio (with transcription), HTML, CSV, JSON, XML, ZIP, YouTube URLs, EPubs and more.

David-Li0406/meta-skill-evloving

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

David-Li0406/meta-skill-evloving

Build with OpenAI's stateless APIs - Chat Completions (GPT-5, GPT-4o), Embeddings, Images (DALL-E 3), Audio (Whisper + TTS), and Moderation. Includes Node.js SDK and fetch-based approaches for Cloudflare Workers. Use when: implementing chat completions with GPT-5/GPT-4o, streaming responses with SSE, using function calling/tools, creating structured outputs with JSON schemas, generating embeddings for RAG (text-embedding-3-small/large), generating images with DALL-E 3, editing images with GPT-Image-1, transcribing audio with Whisper, synthesizing speech with TTS (11 voices), moderating content (11 safety categories), or troubleshooting rate limits (429), invalid API keys (401), function calling failures, streaming parse errors, embeddings dimension mismatches, or token limit exceeded.

David-Li0406/meta-skill-evloving

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

David-Li0406/meta-skill-evloving

Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks

David-Li0406/meta-skill-evloving

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas

David-Li0406/meta-skill-evloving

Download YouTube videos with customizable quality and format options. Use this skill when the user asks to download, save, or grab YouTube videos. Supports various quality settings (best, 1080p, 720p, 480p, 360p), multiple formats (mp4, webm, mkv), and audio-only downloads as MP3.

David-Li0406/meta-skill-evloving

Best practices for Remotion - Video creation in React

David-Li0406/meta-skill-evloving

Provides bidirectional translation (Chinese/English), grammar checking, and sentence polishing. Supports specific tense constraints, context-aware tone adjustment, and natural expression optimization. Outputs direct text without formatting.

David-Li0406/meta-skill-evloving

指导如何通过自定义注解(如@Unicom)标识Dubbo接口,利用BeanDefinitionRegistryPostProcessor在启动时扫描并动态注册ReferenceBean,实现RPC调用的封装。

David-Li0406/meta-skill-evloving

生成Python脚本,利用FFmpeg将图片序列按3x3布局合并,或将合并图拆分。要求使用subprocess模块执行命令,并支持用户交互式输入路径。

David-Li0406/meta-skill-evloving

SOP for extracting and analyzing promotional activity details, handling time formatting, location mapping, payment logic, and step-by-step process validation.

David-Li0406/meta-skill-evloving

Specializes in creating TikTok short video scripts using an anthropomorphic 'Chef' perspective to explain wildlife food chains and survival environments, utilizing real field footage.

David-Li0406/meta-skill-evloving

针对TikTok平台,以拟人化视角(如动物作为厨师)创作系列短视频脚本。重点介绍野生动物、食物链及生态环境,要求使用野外实拍素材,风格幽默且具有教育意义。

David-Li0406/meta-skill-evloving

Generates KWL (Know, Want to know, Learned) charts for educational videos, specifically BrainPOP, using simple 7th-grade language and short, concise bullet points.

David-Li0406/meta-skill-evloving

Tracks complex, multi-session work using the Beads issue tracker and dependency graphs, and provides persistent memory that survives conversation compaction. Use when work spans multiple sessions, has complex dependencies, or needs persistent context across compaction cycles. Trigger with phrases like "create task for", "what's ready to work on", "show task", "track this work", "what's blocking", or "update status".

관련 스킬