motionkit.byHizmedia (opens hizmedia.com in a new tab)
ComponentsTheme StudioPage BuilderPricing

Start building with motion.

206 animated React components, free to browse and customise. Plus unlocks every premium one, with a 14-day free trial.

Browse componentsSee Plus
motionkit.

Animated React components for people who love the details. Built with TypeScript, Tailwind CSS and Motion.

  • Hizmedia on Instagram (opens in a new tab)
  • Hizmedia on LinkedIn (opens in a new tab)
  • Hizmedia on YouTube (opens in a new tab)

Product

  • Components
  • Theme Studio
  • Page Builder
  • MotionKit Plus
  • What's new

Components

  • Backgrounds
  • Text effects
  • Buttons
  • Cards
  • Sections
  • All 206 components

Resources

  • Guides
  • Free tools
  • Free components
  • For shadcn/ui
  • Liquid glass
  • Hero sections

Company

  • About
  • Cookie policy
  • Your account
  • Hizmedia (opens in a new tab)
  • Start a project

motionkit.

© 2026 Hizmedia (opens hizmedia.com in a new tab)· Designed and built in the UK

RSS Back to top
    1. Guides
    2. Fundamentals

    Migrating from Framer Motion to Motion: What Changes

    Framer Motion is now Motion. How to switch packages, update imports to motion/react, use Motion in Next.js Server Components, and keep your bundle small.

    HHizmediaUpdated 14 November 20265 min read
    On this page
    1. 011. Swap the package
    2. 022. Update the imports
    3. 033. Use Motion in Server Components
    4. 044. Optional: load less JavaScript
    5. 05Copy-paste components already on Motion

    Framer Motion became Motion when the library went independent of Framer. For React apps the move is mostly mechanical: a new package name and a new import path, with the same components and hooks. Here's the whole migration, plus two newer entry points that are worth knowing about once you've switched.

    011. Swap the package#

    terminal
    npm uninstall framer-motion
    npm install motion

    The motion package contains the React API alongside Motion's framework-independent animation functions, so it replaces framer-motion entirely. Not sure you need it at all? Motion vs CSS animations helps you decide.

    022. Update the imports#

    Every import from framer-motion becomes an import from motion/react. The names inside the braces stay the same:

    card.tsx
    // before
    import { motion, AnimatePresence, useScroll } from "framer-motion";
    
    // after
    import { motion, AnimatePresence, useScroll } from "motion/react";

    A project-wide find and replace of "framer-motion" with "motion/react" does it in one go. Then run your type checker: if your old version was several major versions behind, a few APIs may have changed between versions, and the errors point straight at them.

    033. Use Motion in Server Components#

    In the Next.js App Router, motion components need to be in a client component. For a simple animated element in an otherwise server-rendered file, Motion has a client entry point you can import from a Server Component directly:

    app/page.tsx
    import * as motion from "motion/react-client";
    
    export default function Page() {
      return (
        <motion.h1 initial={{ opacity: 0, y: 12 }} animate={{ opacity: 1, y: 0 }}>
          Welcome
        </motion.h1>
      );
    }

    Anything that uses hooks, state or event handlers still belongs in its own "use client" component.

    044. Optional: load less JavaScript#

    If bundle size matters, LazyMotion with the lighter m component loads only the animation features you ask for:

    fade-in.tsx
    "use client";
    
    import { LazyMotion, domAnimation } from "motion/react";
    import * as m from "motion/react-m";
    
    export function FadeIn({ children }: { children: React.ReactNode }) {
      return (
        <LazyMotion features={domAnimation}>
          <m.div initial={{ opacity: 0 }} animate={{ opacity: 1 }}>
            {children}
          </m.div>
        </LazyMotion>
      );
    }

    domAnimation covers animations, variants, exits and tap and hover gestures; switch to domMax when you also need drag or layout animation.

    05Copy-paste components already on Motion#

    Every MotionKit component imports from motion/react, so it drops into a migrated project as is: copy the file, or install it with the shadcn CLI, and it uses the same Motion package as the rest of your app.

    Put it into practice

    Components from this guide

    • Animated TabsAccessible tabs with a sliding indicator and soft content transitions.
    • Magnetic ButtonA button that leans toward the cursor with a springy, physical pull.
    • Morphing TextRotates through a list of words, letters rising in and drifting out.
    • ToastStacking notifications with swipe-to-dismiss, hover-to-pause and variants.

    Questions

    Is Motion the same library as Framer Motion?+

    Yes. It's the same library under a new name, maintained by the same author, now independent of Framer.

    Do I need to rewrite my animations?+

    No. Components, props and hooks keep their names; you change the package and the import path.

    What is the difference between motion/react and motion/react-client?+

    motion/react is the full React API for client components. motion/react-client exports the motion components in a form you can import from a Next.js Server Component file.

    Does Motion work with React 19?+

    Yes. Current versions of Motion support React 19.

    PreviousExit Animations in React: AnimatePresence and Why Yours Isn't WorkingNext Build an Animated Number Counter in React That Counts Up on Scroll

    On this page

    1. 1. Swap the package
    2. 2. Update the imports
    3. 3. Use Motion in Server Components
    4. 4. Optional: load less JavaScript
    5. Copy-paste components already on Motion

    Found this useful? Send it to someone building with motion.

    Keep reading

    All guides
    • Fundamentals·9 min read

      Motion (Framer Motion) vs CSS Animations in React: Which to Use When

      Should you animate with CSS or Motion (Framer Motion) in React? Compare performance, bundle size, springs, exits and gestures, with code for both.

      Read guide
    • Fundamentals·6 min read

      Spring Animations in React: Stiffness, Damping and Mass

      How spring animations work in React: what stiffness, damping and mass do, how to choose values in Motion, plus a live spring you can tune and copy.

      Read guide
    • Fundamentals·6 min read

      Easing Functions Explained: cubic-bezier in CSS and Motion

      What easing curves are, what ease-in, ease-out and ease-in-out really mean, how cubic-bezier works and which curve to use when, with a live curve editor.

      Read guide