Scroll animations that do not fight the reader

Scroll-jacking, content that stays invisible, effects that replay on every pass. Rules that keep scroll motion pleasant, with CSS that degrades safely.

Updated 7 min readscrollanimationcssaccessibilityperformance

Tested 28 October 2026 with Chromium 153 through PlaywrightOn this page: 1 live demo, 1 clip

The short answer

  1. Never take over the scroll itself: no custom scroll speed, no snapping the page in steps, no blocking the wheel. The reader's scroll is the input; your animation follows it.
  2. Content must be readable without the animation: no opacity: 0 waiting for a script or an observer to fire.
  3. Reveal once. A section that fades out and in again every time it crosses the screen is tiring.
  4. Prefer CSS scroll-driven animations (animation-timeline: view()) inside @supports, so browsers without them simply show the content.
  5. Under reduced motion, drop scroll-linked movement and parallax entirely.

Scroll effects are where a lot of sites go from "polished" to "please stop". The difference is almost never the effect itself. It is whether the page still behaves like a page: the wheel, the trackpad, the space bar, the scrollbar, find-in-page and the back button all do what the reader expects.

What readers actually complain about

  • Scroll-jacking. The page decides how far one wheel tick goes, or locks the scroll while a scene plays. Trackpads feel broken, keyboard users get stuck, and form fields can lose focus. Smooth-scroll libraries are gentler than the old full takeover, but they still change how scrolling feels on every device and can confuse assistive technology.
  • Invisible content. Sections start at opacity: 0 and wait for an observer. Scroll fast, jump with find-in-page, print the page or block the script, and you get blank space.
  • Replays. Elements animate out when they leave and in again when they return, so scrolling back up to re-read something sets the whole page moving.
  • Everything moves. Twenty fade-ups in a row are noise. One pinned scene with a reason is a story.
Live demoScroll sandbox: four ways to reveal

The live demo loads here when scripts run. The text below says what it shows.

A small scroll box with eight cards. Switch between pattern 1 (CSS scroll-driven, scrubbed by your scroll; in a browser without support the cards are simply there), pattern 2 (revealed once by an observer, then left alone), every pass (what readers complain about: scroll back up and it all moves again) and off. Scroll with the wheel, the keys or the scrollbar: none of them is taken over. Under reduced motion every pattern shows the cards as they are.

Pattern 1: a reveal that cannot hide content

Hide nothing unless the browser can animate it, and let the animation run off the scroll position instead of a script:

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } }

No JavaScript, no observer, nothing to fail. Chrome and Edge (115 and later) and Safari 26 run it; Firefox's stable release did not in October 2026. In a browser without scroll-driven animations the @supports block is skipped and .reveal is simply visible. With reduced motion it is visible. And because the animation is tied to the element's position, it never "replays": scrolling back just shows it where it ended.

Pattern 2: reveal once with a script, safely

When you need a timed animation (not scrubbed by the scroll), use an observer, but make hiding conditional on the script having run, and stop watching after the first reveal:

<script>document.documentElement.classList.add('js');</script>
<style>
  @media (prefers-reduced-motion: no-preference) {
    .js .reveal-once:not(.is-in) { opacity: 0; transform: translateY(16px); }
    .js .reveal-once { transition: opacity .5s ease-out, transform .5s cubic-bezier(.2, .7, .2, 1); }
  }
</style>
<script type="module">
  const io = new IntersectionObserver(entries => {
    for (const e of entries) if (e.isIntersecting) { e.target.classList.add('is-in'); io.unobserve(e.target); }
  }, { rootMargin: '0px 0px -10% 0px' });
  document.querySelectorAll('.reveal-once').forEach(el => io.observe(el));
</script>

Without the script, there is no js class and nothing is hidden. With reduced motion, nothing is hidden. Each element reveals once, then the observer lets go of it. Put the first <script> in <head> so the class is set before the first paint.

ClipReveal once vs every pass

Two scroll boxes scroll down, then back up to re-read. On the left each card reveals once (pattern 2) and stays; on the right every card fades out when it leaves and back in when it returns, and its replay counter climbs on the way back up. Recorded in Chromium 153 on 28 Oct 2026.

Pattern 3: one pinned scene, with a way out

A pinned section, where the frame holds still while its content changes as you scroll, can explain a product better than any paragraph. Keep it honest:

  • It uses position: sticky, so the browser still scrolls normally; the scene is driven by how far you have scrolled, never by intercepting the wheel.
  • It is short: two to four screens of scrolling, not ten.
  • Everything in it is readable at every point, so a reader who scrolls fast, or jumps with the keyboard, misses nothing.
  • With reduced motion, it shows each step as an ordinary stacked section.

Under reduced motion the same rules give a clear result: pins collapse to normal height, stacked cards show finished, and only a reading progress bar keeps tracking, because it is feedback rather than decoration. Run the scene on CSS scroll-driven animations where the browser has them (inside the @supports guard from Pattern 1), with a small script as the fallback elsewhere.

Smooth-scroll libraries

If you use one, keep it out of the way: leave the native scrollbar working, keep keyboard scrolling (space, Page Down, arrows), let anchor links and find-in-page land where they should, keep form fields focusable, and turn it off entirely under reduced motion. If you only wanted smoother anchor jumps, scroll-behavior: smooth on html inside prefers-reduced-motion: no-preference does that with no library.

Something here did not work?

Every command on this page was run before it was published, on the systems named in "How we tested this". If a step fails for you, write to [email protected] with what you ran and what you saw, and we will fix the page.