Motion One / Framer Motion 等(motion-libs)
Motion One / Framer Motion 等(motion-libs)
Section titled “Motion One / Framer Motion 等(motion-libs)”日付: 2026-09-11
Motion(旧Framer Motion/Motion One)の公式ドキュメントとnpmパッケージに基づく技法カタログ55件。Reactの宣言的APIを中心に、ジェスチャ、レイアウトアニメ、スクロール連動、入退場、モーション値、JS単体API、バンドルサイズ削減までを扱う。コアはMITで無料、Motion+の一部コンポーネントのみ有料。
- 遊び演出・過剰演出:
whileTap/whileHover/dragの即反応、AnimatePresenceで結果カードの出入り、layoutId共有レイアウトでの劇的なシーン切替。staggerでリストが次々出る見せ方。Motion+ は不要。 - 静かなUI:
MotionConfig reducedMotion="user"/useReducedMotion、短いopacitytween、transition.duration控えめ。レイアウトはlayoutで静かに追従。派手な parallax/無限repeatは避ける。 - ループ演出:
drag+constraints/Reorder/useScroll+useTransformの短い1周、AnimatePresence mode="wait"のシーン切替、SVGpathLengthドロー。無料コア(motionMIT)で完結。 - パッケージ事実: npm
motion13.2.0(MIT)、旧名 Framer Motion はframer-motionも同系。Import は"motion/react"。GSAP 比較は公式が React 統合の宣言的APIを強調する程度。 - 課金境界: Motion+(Cursor/Ticker/Carousel/AnimateNumber/AnimateView Early Access 等)は有料。無料コアAPIに寄せる。
1. Motion 公式トップ(概要)
Section titled “1. Motion 公式トップ(概要)”- 何ができるか: 独立 transform、scroll、native gestures、layout、spring、exit(AnimatePresence)、stagger/variants、motion values を製品機能として提示。MIT・無料コア。
- 技術: Motion(motion.dev)
- 実在URL: https://motion.dev/
- 注意: Motion+/AI Kit は有料導線。無料機能で完結するか確認する。
- 料金判定: 無料(有料オプションあり(コア/無料枠は利用可))
2. Docs インデックス
Section titled “2. Docs インデックス”- 何ができるか: React/JavaScript/Vue/Three.js 等のドキュメント入口。React 側に animation・Motion component・Scroll・Layout・AnimatePresence・Transitions・Text が列挙。
- 技術: Motion Docs
- 実在URL: https://motion.dev/docs
- 注意: ページ自体はハブ。個別技法は子ページURLで確認すること。
- 料金判定: 無料
3. Motion for React 入門(旧 Framer Motion)
Section titled “3. Motion for React 入門(旧 Framer Motion)”- 何ができるか:
npm install motion後import { motion } from "motion/react"。ハイブリッドエンジン(WAAPI/ScrollTimeline+JS)。Framer/Figma 利用・npm月間DL多数を公式記載。 - 技術: Motion for React(旧 Framer Motion)
- 実在URL: https://motion.dev/docs/react
- 注意: 公式比較ページにGSAPの「React統合がmessy」という一文あり。
- 料金判定: 無料
4. motion コンポーネント(declarative)
Section titled “4. motion コンポーネント(declarative)”- 何ができるか: HTML/SVG を
motion.div等に置換。animate/layout/whileInView。React再レンダーを bypass。SSR対応。motion.create()でカスタムコンポーネント化。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-motion-component
- 注意: RSCでは
motion/react-client。motion.create()を render 内で呼ばない。 - 料金判定: 無料
5. React animation 概観(initial/animate)
Section titled “5. React animation 概観(initial/animate)”- 何ができるか:
initial→animateの入場、任意CSS値・独立 transform(x/y/scale/rotate…)、height: auto、CSS変数アニメ、keyframes配列。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-animation
- 注意: 物理系はデフォルト spring、opacity等は tween(公式)。
- 料金判定: 無料
6. Enter animation(入場)
Section titled “6. Enter animation(入場)”- 何ができるか: マウント時に
animateへ自動遷移。initial={false}で入場アニメ無効化も可。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react
- 料金判定: 無料
7. Keyframes 配列アニメ
Section titled “7. Keyframes 配列アニメ”- 何ができるか:
animate={{ x: [0, 100, 0] }}。先頭nullは現在値(wildcard)。timesでキーフレーム位置を調整。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-animation
- 注意: 無限ループは
repeat: Infinity(transitions頁)。 - 料金判定: 無料
8. arc() パス曲げ
Section titled “8. arc() パス曲げ”- 何ができるか:
transition.path: arc()で x/y を直線でなく曲線移動。layout/layoutId にも適用可。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-animation
- 注意: 固定パスは CSS
offset-path+offsetDistanceも公式言及。 - 料金判定: 無料
9. Gesture animations(while* 一式)
Section titled “9. Gesture animations(while* 一式)”- 何ができるか:
whileHover/whileTap/whileFocus/whileDrag/whileInView。ジェスチャ中は一時ターゲット、終了で戻る。variants名も可。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-gestures
- 注意: hoverの単独ページはなく、gestures概要頁のHover節が実体。
- 料金判定: 無料
10. Hover gesture
Section titled “10. Hover gesture”- 何ができるか:
whileHover+onHoverStart/onHoverEnd。ポインタの出入りで一時アニメ。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-gestures
- 注意: タッチ端末では tap を主に。
- 料金判定: 無料
11. Tap / whileTap(press相当)
Section titled “11. Tap / whileTap(press相当)”- 何ができるか: 同一要素上での press→release を tap。
whileTap、onTap/onTapStart/onTapCancel。Enterキーでも発火(a11y)。ドラッグ親内では3px超でキャンセル。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-gestures
- 注意: gestures頁の Tap 節を参照。
- 料金判定: 無料
12. Focus gesture(whileFocus)
Section titled “12. Focus gesture(whileFocus)”- 何ができるか:
whileFocusは CSS:focus-visible相当のルールでフォーカス時アニメ。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-gestures
- 注意: gestures/motion-component頁を参照。
- 料金判定: 無料
13. Pan gesture
Section titled “13. Pan gesture”- 何ができるか:
onPan/onPanStart/onPanEnd。3px超で認識。while-なし。タッチではtouch-action無効化が必要と公式TIP。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-gestures
- 注意: ドラッグより低レベルなパン追跡。
- 料金判定: 無料
14. Drag アニメーション一式
Section titled “14. Drag アニメーション一式”- 何ができるか:
drag/drag="x"|"y"、whileDrag、momentum、dragConstraints(px or ref)、dragElastic、dragDirectionLock、dragMomentum、dragTransition(inertia)。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-drag
- 注意: img子は
draggable={false}でゴースト画像防止。 - 料金判定: 無料
15. useDragControls(手動ドラッグ開始)
Section titled “15. useDragControls(手動ドラッグ開始)”- 何ができるか: 別要素の pointerdown から
controls.start(event, { snapToCursor })。dragListener={false}で本体リスナ無効化。stop/cancel。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-use-drag-controls
- 注意: タッチは
touch-action: noneを公式推奨。 - 料金判定: 無料
16. Layout animation(layout prop)
Section titled “16. Layout animation(layout prop)”- 何ができるか:
layoutでサイズ/位置変化を transform ベースで補間。justify-content切替なども。layout="position"|"size"。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-layout-animations
- 注意: 変更は style/className 経由。animate/whileHoverでレイアウトを変えない警告あり。
- 料金判定: 無料
17. layoutId 共有要素トランジション
Section titled “17. layoutId 共有要素トランジション”- 何ができるか: 同一
layoutIdの要素間で共有レイアウト遷移。旧が残るとクロスフェード。AnimatePresenceと併用で戻りも。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-layout-animations
- 注意: 遷移先に定義した transition が使われる(公式)。
- 料金判定: 無料
18. LayoutGroup
Section titled “18. LayoutGroup”- 何ができるか: 別々に再レンダーするコンポーネント間でレイアウト計測を同期。
idで layoutId 名前空間。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-layout-group
- 注意: 兄弟が互いのレイアウトに影響するとき必須級。
- 料金判定: 無料
19. layoutScroll / layoutRoot
Section titled “19. layoutScroll / layoutRoot”- 何ができるか: スクロール容器に
layoutScroll、fixed にlayoutRootを付け計測を補正。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-layout-animations
- 注意: 未指定だとスクロール/fixed内でレイアウトずれ。
- 料金判定: 無料
20. layoutAnchor 相対レイアウト
Section titled “20. layoutAnchor 相対レイアウト”- 何ができるか: 親子が異なる transition でも子が置き去りにならない相対計算。
layoutAnchor={{x,y}}で基準点(0–1)。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-layout-animations
- 注意: View Transitions APIとの差として公式が強調。
- 料金判定: 無料
21. Scroll-triggered(whileInView)
Section titled “21. Scroll-triggered(whileInView)”- 何ができるか: ビューポート入退場でアニメ。
viewport={{ once, root, margin, amount }}。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-scroll-animations
- 注意: プールされた IntersectionObserver(公式性能主張)。
- 料金判定: 無料
22. useInView フック
Section titled “22. useInView フック”- 何ができるか: 任意要素の in-view を boolean。
once/root/margin/amount/initial。約0.6kbと記載。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-use-in-view
- 注意: motion以外の要素でも使える。
- 料金判定: 無料
23. useScroll(scroll-linked)
Section titled “23. useScroll(scroll-linked)”- 何ができるか:
scrollX/YとscrollXProgress/YProgress。ページ/container/target+offset。ScrollTimelineでHW加速可能な場合あり。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-use-scroll
- 料金判定: 無料
24. Scroll progress bar パターン
Section titled “24. Scroll progress bar パターン”- 何ができるか:
scrollYProgressをscaleX(originX: 0)に直結して読了バー。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-scroll-animations
- 注意: 公式の基本例。
- 料金判定: 無料
25. Parallax(useScroll + useTransform)
Section titled “25. Parallax(useScroll + useTransform)”- 何ができるか: スクロール量を層ごとに異なる y へマップし奥行き錯覚。
- 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-scroll-animations
- 注意: accessibility 頁でもパララックス無効化例あり。
- 料金判定: 無料
26. Horizontal scroll section
Section titled “26. Horizontal scroll section”- 何ができるか: 高いコンテナ+sticky+
useScroll→xtransform で縦スクロールを横移動に変換。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-scroll-animations
- 注意: 高さ(例 300vh)で速度感が変わる。
- 料金判定: 無料
27. clipPath スクロール露出
Section titled “27. clipPath スクロール露出”- 何ができるか:
useTransform(scrollYProgress, …, inset…)で画像をスクロールに合わせて開示。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-scroll-animations
- 料金判定: 無料
28. AnimatePresence(exit)
Section titled “28. AnimatePresence(exit)”- 何ができるか: 子のアンマウント前に
exitを実行。uniquekey必須。mode: sync/wait/popLayout。custom/propagate/onExitComplete。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-animate-presence
- 注意: AnimatePresence自体を条件外に置かない。
- 料金判定: 無料
29. usePresence / useIsPresent / usePresenceData
Section titled “29. usePresence / useIsPresent / usePresenceData”- 何ができるか: 手動で
safeToRemove、存在状態の読取、退出中へのデータ渡し。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-animate-presence
- 注意: useAnimateと組み合わせた手動exit例あり。
- 料金判定: 無料
30. AnimatePresence mode=wait / popLayout
Section titled “30. AnimatePresence mode=wait / popLayout”- 何ができるか: waitは退出完了まで入場待ち。popLayoutは退出要素をレイアウトから外し layout と相性良。
- 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-animate-presence
- 注意: popLayout時は親 position 非static、カスタム子は forwardRef。
- 料金判定: 無料
31. Variants オーケストレーション
Section titled “31. Variants オーケストレーション”- 何ができるか: 名前付き状態の伝播、
when/delayChildren、stagger()、動的 variants+custom。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-animation
- 注意: animation頁の Variants 節を参照。
- 料金判定: 無料
32. Transitions(tween/spring/inertia)
Section titled “32. Transitions(tween/spring/inertia)”- 何ができるか:
typetween/spring/inertia。ease名やcubic-bezier、springの stiffness/damping/mass/bounce/visualDuration。値ごと上書き。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-transitions
- 注意: 物理プロパティはデフォルト spring(公式)。
- 料金判定: 無料
33. stagger / delayChildren / repeat
Section titled “33. stagger / delayChildren / repeat”- 何ができるか: 子の遅延階段、
repeat/repeatType(loop/reverse/mirror)、repeatDelay。 - 技術: Motion for React / Motion JS
- 実在URL: https://motion.dev/docs/react-transitions
- 注意: JS側専用頁: https://motion.dev/docs/stagger 。
- 料金判定: 無料
34. Motion values(useMotionValue)
Section titled “34. Motion values(useMotionValue)”- 何ができるか: 再レンダーなしで値を追跡。
get/set/jump/getVelocity/on。複数コンポーネント共有可。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-motion-value
- 注意: 高頻度更新(カウンタ等)向き。
- 料金判定: 無料
35. useTransform
Section titled “35. useTransform”- 何ができるか: 関数変換または入力レンジ→出力レンジマップ。色・blur等。
clamp/ease/mixer。複数出力の名前付きマップ。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-use-transform
- 注意: ドラッグ位置→opacity等の定番。
- 料金判定: 無料
36. useSpring
Section titled “36. useSpring”- 何ができるか: 目標へ spring 追従。数値/単位文字列。他 MotionValue を追跡。
skipInitialAnimation。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-use-spring
- 注意: scrollYProgressのスムージング公式例あり。
- 料金判定: 無料
37. useAnimate(命令的スコープ)
Section titled “37. useAnimate(命令的スコープ)”- 何ができるか: コンポーネント内スコープの
animate。セレクタはスコープ内限定。自動クリーンアップ。シーケンス・再生制御。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-use-animate
- 注意: mini:
motion/react-mini。 - 料金判定: 無料
38. Content as MotionValue(カウンタ)
Section titled “38. Content as MotionValue(カウンタ)”- 何ができるか:
motionの子に MotionValue を渡し DOMテキストを直接更新(再レンダー回避)。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-animation
- 注意: AnimateNumberはMotion+(注意)。無料なら MotionValue で十分。
- 料金判定: 無料(有料オプションあり(コア/無料枠は利用可))
39. SVG pathLength ライン描画
Section titled “39. SVG pathLength ライン描画”- 何ができるか:
pathLength/pathSpacing/pathOffset(0–1)で手描き風。path/circle/rect等対応。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-svg-animation
- 注意: viewBoxアニメ・attrX/Yも同頁。
- 料金判定: 無料
40. SVG path morph(d)
Section titled “40. SVG path morph(d)”- 何ができるか: 類似パス間の
d補間。大きく異なる形状は Flubber 等の mixer を公式言及。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-svg-animation
- 注意: 命令数・型が揃っている必要。
- 料金判定: 無料
41. Accessibility / Reduced Motion
Section titled “41. Accessibility / Reduced Motion”- 何ができるか:
MotionConfig reducedMotion="user"で transform/layoutを自動抑制し opacity等は維持。useReducedMotionで個別分岐。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-accessibility
- 注意: パララックス/大transformを無効化する例が公式。
- 料金判定: 無料
42. useReducedMotion フック
Section titled “42. useReducedMotion フック”- 何ができるか: OSの Reduced Motion を boolean で返し設定変更にも追従。
- 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-use-reduced-motion
- 注意: 動画 autoplay 停止にも使える単純boolean。
- 料金判定: 無料
43. MotionConfig
Section titled “43. MotionConfig”- 何ができるか: 子全体のデフォルト
transition、reducedMotion、transformPagePoint(スケール親・SVG viewBox補正)。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-motion-config
- 料金判定: 無料
44. LazyMotion + m + domAnimation/domMax
Section titled “44. LazyMotion + m + domAnimation/domMax”- 何ができるか: 初期約4.6kb。
m+LazyMotion features={domAnimation|domMax}。sync/async。strictで誤って motion を使うと throw。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-lazy-motion
- 注意: domAnimation=+15kb、domMax=+25kb(公式)。
- 料金判定: 無料
45. Reduce bundle size ガイド
Section titled “45. Reduce bundle size ガイド”- 何ができるか: tree-shaking、
useAnimatemini 2.3kb/hybrid、motionは LazyMotion で削減、とサイズ戦略を整理。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-reduce-bundle-size
- 注意: Bundlephobiaの大きい数字は誤解を招くと公式注意。
- 料金判定: 無料
46. Reorder(ドラッグ並べ替え)
Section titled “46. Reorder(ドラッグ並べ替え)”- 何ができるか:
Reorder.Group/Item。axis自動検出(x/y/xy)、onReorder、ハンドル+useDragControls、オートスクロール、AnimatePresence併用。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-reorder
- 注意: z-index効果には position relative/absolute。
- 料金判定: 無料
47. JavaScript animate()
Section titled “47. JavaScript animate()”- 何ができるか: CSSセレクタ/要素/単値/オブジェクト/シーケンス。mini 2.3kb と hybrid。再生コントロール(pause/play/speed/time)。
- 技術: Motion(JS)/旧 Motion One 系API
- 実在URL: https://motion.dev/docs/animate
- 注意: JS側の入口はquick-startとanimateの頁。
- 料金判定: 無料
48. Quick Start(install & first animate)
Section titled “48. Quick Start(install & first animate)”- 何ができるか:
npm install motionまたは CDN。animate(".box", { rotate: 360 })、spring、stagger。HTML/SVG/WebGL言及。 - 技術: Motion JS
- 実在URL: https://motion.dev/docs/quick-start
- 注意: CDNは latest 固定より版固定推奨(公式NOTE)。
- 料金判定: 無料
49. scroll()(JS scroll-linked)
Section titled “49. scroll()(JS scroll-linked)”- 何ができるか: 5.1kb。コールバックやアニメをスクロール進捗にバインド。ScrollTimeline利用可。scroll-triggeredは inView。
- 技術: Motion JS
- 実在URL: https://motion.dev/docs/scroll
- 注意: Reactの useScroll と対になるJS API。
- 料金判定: 無料
50. stagger()(JS)
Section titled “50. stagger()(JS)”- 何ができるか:
delay: stagger(0.1)で要素間遅延。シーケンス内セグメントにも適用可。fromオプションは transitions 頁でも言及。 - 技術: Motion JS
- 実在URL: https://motion.dev/docs/stagger
- 注意: リスト/ナビ/文字分割演出の基盤。
- 料金判定: 無料
51. useTime
Section titled “51. useTime”- 何ができるか: 生成からの経過msを毎フレーム更新する MotionValue。
useTransformと組み合わせて永久回転など。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-use-time
- 料金判定: 無料
52. useVelocity
Section titled “52. useVelocity”- 何ができるか: 数値 MotionValue の速度を別 MotionValue に。速度→scale等。加速度は useVelocity を重ねる。
- 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-use-velocity
- 注意: ドラッグ速度フィードバック向け。
- 料金判定: 無料
53. propagate(ジェスチャ伝播制御)
Section titled “53. propagate(ジェスチャ伝播制御)”- 何ができるか: 子の
propagate={{ tap: false }}で親 whileTap 等への伝播を止める(stopPropagationでは間に合わない場合)。 - 技術: Motion for React
- 実在URL: https://motion.dev/docs/react-gestures
- 注意: 現状 tap のみサポートと公式。
- 料金判定: 無料
54. npm package motion
Section titled “54. npm package motion”- 何ができるか: パッケージ名
motion、MIT、v13.2.0(確認時点)。React/JS/Vue。framer-motionからmotion/reactへ移行注記。 - 技術: Motion
- 実在URL: https://www.npmjs.com/package/motion
- 注意: Motion+は別課金。コアはMIT。
- 料金判定: 無料(有料オプションあり(コア/無料枠は利用可))
55. npm package framer-motion
Section titled “55. npm package framer-motion”- 何ができるか: 旧ブランドパッケージも継続公開(確認時点 v13.2.0)。READMEは Motion へ誘導し
npm install motionを推奨。 - 技術: Framer Motion → Motion
- 実在URL: https://www.npmjs.com/package/framer-motion
- 注意: 新規は motion パッケージ推奨(公式)。
- 料金判定: 無料(有料オプションあり(コア/無料枠は利用可))