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. Accessibility

    How to Respect prefers-reduced-motion in React

    What the reduced motion setting does, how to read it in CSS and in React with Motion, what to keep and what to remove, and how to test it.

    HHizmediaUpdated 21 October 20266 min read
    On this page
    1. 01Where the setting lives
    2. 02In CSS
    3. 03In React with Motion
    4. 04What to remove and what to keep
    5. 05Loops need a pause, whatever the setting
    6. 06How to test it

    Some people turn on reduced motion because large movement on screen makes them dizzy or sick. Others have migraines, vestibular disorders or simply find animation distracting. Every major operating system has the setting, and browsers pass it to your site. Respecting it is a small amount of code, and it's the difference between a site that feels polished and one that makes some visitors close the tab.

    01Where the setting lives#

    People switch it on in their operating system, not in your site, and the browser exposes it as the prefers-reduced-motion media feature:

    • macOS: System Settings, Accessibility, Display, Reduce motion
    • iOS and iPadOS: Settings, Accessibility, Motion, Reduce Motion
    • Windows 11: Settings, Accessibility, Visual effects, Animation effects (off)
    • Android: Settings, Accessibility, Remove animations (the wording varies by maker)

    It has two values: no-preference and reduce. There's nothing to ask for and nothing to store: read it, and adapt.

    02In CSS#

    For CSS animations and transitions, the media query is all you need. Tailwind's motion-reduce: and motion-safe: variants are the same query in class form.

    globals.css
    .marquee-track {
      animation: scroll 30s linear infinite;
    }
    
    @media (prefers-reduced-motion: reduce) {
      .marquee-track {
        animation: none;
      }
    }
    example.tsx
    <div class="animate-spin motion-reduce:animate-none">…</div>

    03In React with Motion#

    Motion's useReducedMotion hook returns true when the setting is on, so you can choose different values per component. It updates live if someone changes the setting while your page is open.

    card.tsx
    "use client";
    
    import { motion, useReducedMotion } from "motion/react";
    
    export function Card({ children }: { children: React.ReactNode }) {
      const reduceMotion = useReducedMotion();
      return (
        <motion.div
          // with reduced motion the card fades in; otherwise it also rises
          initial={{ opacity: 0, y: reduceMotion ? 0 : 24 }}
          whileInView={{ opacity: 1, y: 0 }}
          viewport={{ once: true }}
        >
          {children}
        </motion.div>
      );
    }

    To set a default for a whole app, wrap it in MotionConfig with reducedMotion="user". Motion then skips transform and layout animations for people with the setting on, while keeping opacity and colour changes, which are usually safe.

    providers.tsx
    "use client";
    
    import { MotionConfig } from "motion/react";
    
    export function Providers({ children }: { children: React.ReactNode }) {
      return <MotionConfig reducedMotion="user">{children}</MotionConfig>;
    }

    Canvas and requestAnimationFrame loops don't go through Motion, so check the media query yourself with window.matchMedia("(prefers-reduced-motion: reduce)") and draw a single still frame instead of starting the loop.

    04What to remove and what to keep#

    Reduced motion doesn't mean no feedback. The aim is to remove movement that travels, spins, zooms or parallaxes, and keep the information the animation carried.

    • Remove: parallax, large slides and zooms, spinning, auto-playing loops, scroll-linked movement, elements that follow the cursor.
    • Keep: short opacity fades, colour changes, focus rings, progress that fills in place, a tick that appears when a form saves.
    • Show the end state: text that would have typed itself appears whole, a number that would have counted up shows its final value, a chart that would have drawn appears drawn.
    • Never hide meaning behind motion: if a status was only shown by a shake, also show it in words.

    Every MotionKit component follows these rules, and each component page has an accessibility report saying exactly what changes with reduced motion on.

    05Loops need a pause, whatever the setting#

    WCAG 2.2 success criterion 2.2.2 (Pause, Stop, Hide, level A) applies to everyone, not only people with reduced motion on: anything that moves on its own for more than five seconds, alongside other content, needs a way to pause, stop or hide it. A pause on hover or focus helps, but a visible pause button is the safest answer for marquees, carousels and ambient backgrounds behind text.

    06How to test it#

    You don't need to change your system setting to test. In Chrome or Edge, open DevTools, press Command+Shift+P (Ctrl+Shift+P on Windows), type "Rendering", open the Rendering panel and set "Emulate CSS media feature prefers-reduced-motion" to "reduce". Firefox and Safari follow the system setting. Then click through every animated part of the page and ask: did anything still travel, spin or zoom, and did I lose any information?

    Put it into practice

    Components from this guide

    • MarqueeA seamless infinite scroller for logos and testimonials that pauses on hover.
    • Number TickerCounts up to a value with an eased finish when it scrolls into view.
    • TypewriterTypes a phrase, pauses, backspaces and types the next, with a human rhythm and a caret that blinks only at rest.
    • Aurora BackgroundDrifting, blurred color fields for hero sections and empty states.
    Next Build an Animated Landing Page in Next.js with Tailwind and Motion

    On this page

    1. Where the setting lives
    2. In CSS
    3. In React with Motion
    4. What to remove and what to keep
    5. Loops need a pause, whatever the setting
    6. How to test it

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

    Keep reading

    All guides
    • Build it·8 min read

      Page Transitions in the Next.js App Router with View Transitions

      Animate between pages in the Next.js App Router with React's ViewTransition: shared element morphs, directional slides, a fixed header and reduced motion, plus when Motion still helps.

      Read guide
    • Accessibility·6 min read

      Accessible Animation: A WCAG 2.2 Checklist for React

      The WCAG 2.2 success criteria that apply to animated interfaces, what each one means in practice, and how to meet it in React.

      Read guide
    • Fundamentals·7 min read

      Custom Animations in Tailwind CSS v4: Keyframes, Easing and Enter Effects

      Add custom animations in Tailwind CSS v4 with @theme: keyframes, animate-* classes, custom easing curves, enter animations with starting:, reduced motion, and when to switch to Motion.

      Read guide