diff --git a/packages/framer-motion/src/utils/reduced-motion/index.ts b/packages/framer-motion/src/utils/reduced-motion/index.ts index b6cbe47bff..f3b5f27335 100644 --- a/packages/framer-motion/src/utils/reduced-motion/index.ts +++ b/packages/framer-motion/src/utils/reduced-motion/index.ts @@ -11,7 +11,11 @@ export function initPrefersReducedMotion() { const setReducedMotionPreferences = () => (prefersReducedMotion.current = motionMediaQuery.matches) - motionMediaQuery.addEventListener("change", setReducedMotionPreferences) + if (motionMediaQuery.addEventListener) { + motionMediaQuery.addEventListener("change", setReducedMotionPreferences) + } else { + motionMediaQuery.addListener(setReducedMotionPreferences) + } setReducedMotionPreferences() } else {