コンテンツにスキップ

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、短い opacity tween、transition.duration 控えめ。レイアウトは layout で静かに追従。派手な parallax/無限 repeat は避ける。
  • ループ演出: drag+constraints/Reorder/useScroll+useTransform の短い1周、AnimatePresence mode="wait" のシーン切替、SVG pathLength ドロー。無料コア(motion MIT)で完結。
  • パッケージ事実: npm motion 13.2.0(MIT)、旧名 Framer Motion は framer-motion も同系。Import は "motion/react"。GSAP 比較は公式が React 統合の宣言的APIを強調する程度。
  • 課金境界: Motion+(Cursor/Ticker/Carousel/AnimateNumber/AnimateView Early Access 等)は有料。無料コアAPIに寄せる。
  • 何ができるか: 独立 transform、scroll、native gestures、layout、spring、exit(AnimatePresence)、stagger/variants、motion values を製品機能として提示。MIT・無料コア。
  • 技術: Motion(motion.dev)
  • 実在URL: https://motion.dev/
  • 注意: Motion+/AI Kit は有料導線。無料機能で完結するか確認する。
  • 料金判定: 無料(有料オプションあり(コア/無料枠は利用可))
  • 何ができるか: 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(公式)。
  • 料金判定: 無料
  • 何ができるか: マウント時に animate へ自動遷移。initial={false} で入場アニメ無効化も可。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react
  • 料金判定: 無料
  • 何ができるか: animate={{ x: [0, 100, 0] }}。先頭 null は現在値(wildcard)。times でキーフレーム位置を調整。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-animation
  • 注意: 無限ループは repeat: Infinity(transitions頁)。
  • 料金判定: 無料
  • 何ができるか: transition.path: arc() で x/y を直線でなく曲線移動。layout/layoutId にも適用可。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-animation
  • 注意: 固定パスは CSS offset-path+offsetDistance も公式言及。
  • 料金判定: 無料
  • 何ができるか: whileHover/whileTap/whileFocus/whileDrag/whileInView。ジェスチャ中は一時ターゲット、終了で戻る。variants名も可。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-gestures
  • 注意: hoverの単独ページはなく、gestures概要頁のHover節が実体。
  • 料金判定: 無料
  • 何ができるか: whileHover+onHoverStart/onHoverEnd。ポインタの出入りで一時アニメ。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-gestures
  • 注意: タッチ端末では tap を主に。
  • 料金判定: 無料
  • 何ができるか: 同一要素上での press→release を tap。whileTap、onTap/onTapStart/onTapCancel。Enterキーでも発火(a11y)。ドラッグ親内では3px超でキャンセル。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-gestures
  • 注意: gestures頁の Tap 節を参照。
  • 料金判定: 無料
  • 何ができるか: whileFocus は CSS :focus-visible 相当のルールでフォーカス時アニメ。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-gestures
  • 注意: gestures/motion-component頁を参照。
  • 料金判定: 無料
  • 何ができるか: onPan/onPanStart/onPanEnd。3px超で認識。while- なし。タッチでは touch-action 無効化が必要と公式TIP。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-gestures
  • 注意: ドラッグより低レベルなパン追跡。
  • 料金判定: 無料
  • 何ができるか: 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 を公式推奨。
  • 料金判定: 無料
  • 何ができるか: 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 が使われる(公式)。
  • 料金判定: 無料
  • 何ができるか: 別々に再レンダーするコンポーネント間でレイアウト計測を同期。id で layoutId 名前空間。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-layout-group
  • 注意: 兄弟が互いのレイアウトに影響するとき必須級。
  • 料金判定: 無料
  • 何ができるか: スクロール容器に layoutScroll、fixed に layoutRoot を付け計測を補正。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-layout-animations
  • 注意: 未指定だとスクロール/fixed内でレイアウトずれ。
  • 料金判定: 無料
  • 何ができるか: 親子が異なる transition でも子が置き去りにならない相対計算。layoutAnchor={{x,y}} で基準点(0–1)。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-layout-animations
  • 注意: View Transitions APIとの差として公式が強調。
  • 料金判定: 無料
  • 何ができるか: ビューポート入退場でアニメ。viewport={{ once, root, margin, amount }}。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-scroll-animations
  • 注意: プールされた IntersectionObserver(公式性能主張)。
  • 料金判定: 無料
  • 何ができるか: 任意要素の in-view を boolean。once/root/margin/amount/initial。約0.6kbと記載。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-use-in-view
  • 注意: motion以外の要素でも使える。
  • 料金判定: 無料
  • 何ができるか: scrollX/Y と scrollXProgress/YProgress。ページ/container/target+offset。ScrollTimelineでHW加速可能な場合あり。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-use-scroll
  • 料金判定: 無料

25. Parallax(useScroll + useTransform)

Section titled “25. Parallax(useScroll + useTransform)”
  • 何ができるか: スクロール量を層ごとに異なる y へマップし奥行き錯覚。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-scroll-animations
  • 注意: accessibility 頁でもパララックス無効化例あり。
  • 料金判定: 無料
  • 何ができるか: 高いコンテナ+sticky+useScroll→x transform で縦スクロールを横移動に変換。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-scroll-animations
  • 注意: 高さ(例 300vh)で速度感が変わる。
  • 料金判定: 無料
  • 何ができるか: 子のアンマウント前に exit を実行。unique key 必須。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例あり。
  • 料金判定: 無料
  • 何ができるか: 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 節を参照。
  • 料金判定: 無料
  • 何ができるか: type tween/spring/inertia。ease名やcubic-bezier、springの stiffness/damping/mass/bounce/visualDuration。値ごと上書き。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-transitions
  • 注意: 物理プロパティはデフォルト spring(公式)。
  • 料金判定: 無料
  • 何ができるか: 再レンダーなしで値を追跡。get/set/jump/getVelocity/on。複数コンポーネント共有可。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-motion-value
  • 注意: 高頻度更新(カウンタ等)向き。
  • 料金判定: 無料
  • 何ができるか: 関数変換または入力レンジ→出力レンジマップ。色・blur等。clamp/ease/mixer。複数出力の名前付きマップ。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-use-transform
  • 注意: ドラッグ位置→opacity等の定番。
  • 料金判定: 無料
  • 何ができるか: 目標へ spring 追従。数値/単位文字列。他 MotionValue を追跡。skipInitialAnimation。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-use-spring
  • 注意: scrollYProgressのスムージング公式例あり。
  • 料金判定: 無料
  • 何ができるか: コンポーネント内スコープの 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 で十分。
  • 料金判定: 無料(有料オプションあり(コア/無料枠は利用可))
  • 何ができるか: pathLength/pathSpacing/pathOffset(0–1)で手描き風。path/circle/rect等対応。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-svg-animation
  • 注意: viewBoxアニメ・attrX/Yも同頁。
  • 料金判定: 無料
  • 何ができるか: 類似パス間の d 補間。大きく異なる形状は Flubber 等の mixer を公式言及。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-svg-animation
  • 注意: 命令数・型が揃っている必要。
  • 料金判定: 無料
  • 何ができるか: MotionConfig reducedMotion="user" で transform/layoutを自動抑制し opacity等は維持。useReducedMotion で個別分岐。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-accessibility
  • 注意: パララックス/大transformを無効化する例が公式。
  • 料金判定: 無料
  • 何ができるか: OSの Reduced Motion を boolean で返し設定変更にも追従。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-use-reduced-motion
  • 注意: 動画 autoplay 停止にも使える単純boolean。
  • 料金判定: 無料
  • 何ができるか: 子全体のデフォルト transition、reducedMotion、transformPagePoint(スケール親・SVG viewBox補正)。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-motion-config
  • 料金判定: 無料
  • 何ができるか: 初期約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(公式)。
  • 料金判定: 無料
  • 何ができるか: tree-shaking、useAnimate mini 2.3kb/hybrid、motion は LazyMotion で削減、とサイズ戦略を整理。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-reduce-bundle-size
  • 注意: Bundlephobiaの大きい数字は誤解を招くと公式注意。
  • 料金判定: 無料
  • 何ができるか: 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。
  • 料金判定: 無料
  • 何ができるか: 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)。
  • 料金判定: 無料
  • 何ができるか: 5.1kb。コールバックやアニメをスクロール進捗にバインド。ScrollTimeline利用可。scroll-triggeredは inView。
  • 技術: Motion JS
  • 実在URL: https://motion.dev/docs/scroll
  • 注意: Reactの useScroll と対になるJS API。
  • 料金判定: 無料
  • 何ができるか: delay: stagger(0.1) で要素間遅延。シーケンス内セグメントにも適用可。fromオプションは transitions 頁でも言及。
  • 技術: Motion JS
  • 実在URL: https://motion.dev/docs/stagger
  • 注意: リスト/ナビ/文字分割演出の基盤。
  • 料金判定: 無料
  • 何ができるか: 生成からの経過msを毎フレーム更新する MotionValue。useTransform と組み合わせて永久回転など。
  • 技術: Motion for React
  • 実在URL: https://motion.dev/docs/react-use-time
  • 料金判定: 無料
  • 何ができるか: 数値 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 のみサポートと公式。
  • 料金判定: 無料
  • 何ができるか: パッケージ名 motion、MIT、v13.2.0(確認時点)。React/JS/Vue。framer-motion から motion/react へ移行注記。
  • 技術: Motion
  • 実在URL: https://www.npmjs.com/package/motion
  • 注意: Motion+は別課金。コアはMIT。
  • 料金判定: 無料(有料オプションあり(コア/無料枠は利用可))
  • 何ができるか: 旧ブランドパッケージも継続公開(確認時点 v13.2.0)。READMEは Motion へ誘導し npm install motion を推奨。
  • 技術: Framer Motion → Motion
  • 実在URL: https://www.npmjs.com/package/framer-motion
  • 注意: 新規は motion パッケージ推奨(公式)。
  • 料金判定: 無料(有料オプションあり(コア/無料枠は利用可))