×

css · level 3 · unit 6 · lesson 4

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

Turn big movement off for people who asked for less.

For some people, movement on a screen brings on dizziness, sickness or headaches. They can switch on a reduce motion setting on their phone or computer. means building pages that work for them too.

applies when that setting is on. Inside it, turn big movement off with animation: none, or swap it for a gentle fade. Small colour changes are usually fine.

The preview follows your own device's setting, so you may not see a difference. The checks read your CSS instead.

<div class="banner">Summer sale</div>
@keyframes slide {
  from { translate: -40px 0; }
  to { translate: 0 0; }
}
.banner {
  animation: slide 0.8s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .banner {
    animation: none;
  }
}

Press show my page to see it here.