Question · Vue.js course · Module 13: Transitions & Animations

prefers-reduced-motion

How do you respect the user's prefers-reduced-motion setting in Vue?

Answer options

  • Vue automatically disables all animations
  • Use the media query @media (prefers-reduced-motion: reduce) with fewer or no animations
  • Add the reduced attribute to <Transition>
  • Set the global flag Vue.config.reduceMotion

You can check the correct answer by solving this task in the CodeWorlds game.