Documentation

Documentation

Warning

Reduced Motion enabled

Reduced Motion enabled

You've received the following message:

You have Reduced Motion enabled on your device. Animations may not appear as expected.

You're attempting to animate transform or layout, but you're seeing a warning about Reduced Motion.

Explanation

Reduced Motion is an OS-level setting that a user must intentionally enable on their device. When enabled, the OS and adhering apps and websites will disable some motion.

If Motion has been set to comply with the Reduced Motion setting, it will also disable animations in development mode to realistically represent the animations you'll see in production.

Solution

Using the process.env.NODE_ENV variable you can disable Reduced Motion only in development mode. Be aware that the animations you see in production will differ to those you see locally.

<MotionConfig reducedMotion={process.env.NODE_ENV === "production" ? "user" : "never"}>
  {children}
</MotionConfig>

Level up your animations with Motion+

More than 150+ Motion examples, exclusive APIs like Cursor, private Discord and GitHub, and powerful VS Code animation editing tools.

One-time payment, lifetime updates.

Stay in the loop

Subscribe for the latest news & updates.

Stay in the loop

Subscribe for the latest news & updates.

Stay in the loop

Subscribe for the latest news & updates.