Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Reduced motion

Respecting visitors who ask for less motion: the prefers-reduced-motion media query, which animations to turn off, sliders and autoplay, smooth scrolling, and how admin4 does it.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/designers/theme-design/reduced-motion.md

On this page

Reduced motion

This page is for designers who add transitions, animations, sliders or videos. Some visitors get dizzy or sick from motion and turn on "reduce motion" in their operating system. Browsers report it with the media query prefers-reduced-motion.

Contents

  1. The pattern
  2. What to turn off
  3. Sliders, carousels and videos
  4. In scripts
  5. How admin4 does it

The pattern

Write motion as an enhancement, only for visitors who did not ask for less:

@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform 150ms ease-out; }
  .card:hover { transform: translateY(-2px); }
  html { scroll-behavior: smooth; }
}

or switch it off for those who did:

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

The first form is safer: motion is opt-in by default.

What to turn off

  • Parallax, zooming backgrounds, large movements across the screen.
  • Smooth scrolling for in-page links.
  • Animated page transitions.

Small color or opacity fades are usually fine; motion across space is what causes trouble.

Sliders, carousels and videos

  • No autoplay, or a visible pause button that works with the keyboard.
  • With reduced motion, show the first slide and let visitors move by hand.
  • The layouts editor's slider, carousel and gallery blocks render with the design's templates and scripts: check them with reduced motion on.

In scripts

const reduce = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
if (!reduce) { startAutoplay(); }

How admin4 does it

admin4's stylesheets have @media (prefers-reduced-motion: reduce) blocks that turn off transitions (for example the "More" menu icon's rotation in admin4.css), and hover effects run only under (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference).

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x