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コードを生成します。エントランスアニメーション、ジェスチャー操作(ホバー/タップ/ドラッグ)、スクロールベースの表示、スプリング物理と自然なタイミングを用いたレイアウトトランジションをサポートします。CSSのみのトランジション(ネイティブCSSを使用)、JavaScriptフレームワークなしの静的サイト、Vueアニメーション(代わりにmotion-vバリアントを使用)、SVG/Canvasの複雑なアニメーション(GSAPが適切)には使用しないでください。

learn-skills.dev とは?

このスキルは、Motion.devを活用して、React、Next.js、Svelte、Astroプロジェクトに120fpsのGPUアクセラレーションアニメーションを追加するための包括的なガイドです。Framer Motionの後継として月間1000万ダウンロードを誇るMotion.devは、パフォーマンスとアクセシビリティに優れたアニメーションを提供します。スキルは、Apple/Jon Iveのデザイン原則に基づき、目的主導で滑らか(120fps)、アクセシブル、パフォーマンス重視、エレガントで一貫性のあるアニメーションの生成を支援します。ワークフローは「明確化→計画→実装→検証」の4ステップで構成され、エントランス、ジェスチャー、スクロール、レイアウトの各アニメーションパターンに対応した決定木とコードパターンを提供します。また、アクセシビリティ(prefers-reduced-motion対応)、パフォーマンス検証(60fps以上、GPUアクセラレーション)、バンドルサイズ最適化(50KB未満)などの品質基準を満たすためのチェックリストも含まれています。

対応✓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 - 月間1000万ダウンロード、Framer Motionの後継 React、Next.js、Svelte、Astro、Vue向けの120fps GPUアクセラレーションアニメーション

目的

Apple/Jon Iveの原則に従い、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: アニメーション戦略の計画

実装アプローチを定義します:

  • アニメーションを適用するコンポーネント(ヘッダー、カード、ボタン、セクション)
  • モーションパターン(フェード、スライド、スケール、スプリング、パララックス)
  • タイミング仕様(継続時間、遅延、スタガー間隔)
  • 物理パラメータ(剛性: 300-400、減衰: 20、質量: 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}}
│   → 物理: スプリング(剛性: 300-400、減衰: 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プロパティ(自動FLIP)
    → 共有: モーフィング用の layoutId="id"
    → 注意: トランスフォームのみアニメーション

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"Vanilla APIN/A
Astro"motion"クライアントスクリプトN/A
Vue"motion-v"<motion.div>Reactと同様

品質基準

カテゴリ要件確認方法
パフォーマンス60fps以上Chrome DevTools → Performance
GPUアクセラレーションtransform/opacityのみwidth/height/left/top を使用しない
バンドル50KB未満webpack-bundle-analyzer
アクセシビリティprefers-reduced-motionシステム設定テスト
モバイルタッチフレンドリーiOS/Androidテスト
レイアウトシフトCLS = 0Lighthouse監査

サンプルライブラリ(プログレッシブローディング)

アニメーションの種類に基づいてオンデマンドで読み込みます:

ヒーローセクション

  • ヒーローフェードアップ - クラシックなAppleスタイルのエントランス
  • ヒーロースタガー - 調整された要素
  • ヒーロースプリットテキスト - 文字の表示

スクロールエフェクト

ジェスチャーとインタラクション

レイアウトアニメーション

  • リスト並び替え - ドラッグで並び替えFLIP
  • アコーディオン - 展開/折りたたみ
  • タブ切り替え - 共有レイアウト

全サンプル: ./examples/ ディレクトリ内の全ファイル

リファレンスドキュメント(オンデマンド読み込み)

  • APIリファレンス全文 - 全コンポーネント、フック、プロパティ
  • スプリング物理ガイド - 剛性、減衰、質量の調整
  • パフォーマンス最適化 - 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プロパティを使用
終了が機能しない<AnimatePresence> でラップ、keyプロパティを追加

実装のベストプラクティス

  1. シンプルに始める → フェード+スライドから構築し、徐々に複雑性を追加
  2. バリアントを抽出する → アニメーション状態を名前付きバリアントとして定義し、保守性を向上
  3. スプリング物理を優先 → スプリングトランジションをデフォルトに(トゥイーンより自然)
  4. リスト項目をスタガー → staggerChildren(0.1-0.2s)を使用してリズムと階層を表現
  5. モバイルを徹底的にテスト → iOS/Androidデバイスでタッチジェスチャーとパフォーマンスを確認
  6. モーション低減を含める → 常に prefers-reduced-motion フォールバックアニメーションを提供
  7. パフォーマンスをプロファイリング → Chrome DevTools Performanceタブを使用、60fps以上を目標

デザイン哲学(Apple/Jon Iveの原則)

以下のデザイン原則をすべてのアニメーションに適用:

  • シンプルさ: 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.

関連スキル