Skip to content

Sticky scroll steps

Text scrolls on the left while a visual stays stuck on the right and changes at each step, using CSS sticky and IntersectionObserver. No dependencies, with a vertical stack as fallback.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

The scrolly-telling format for telling a method or a making process, here the four steps of a ceramic bowl. On large screens each step scrolls in the left column while the right panel stays stuck: the SVG illustration and its caption crossfade as the step goes by. On mobile the more compact panel stays at the top of the screen and the text passes under it. The script only adds this behaviour: each step holds its own visual in a real ordered list, so without JavaScript, with prefers-reduced-motion or in a very short window (400% zoom), everything shows as a vertical stack, each text with its visual, with no animation and no lost content. Keyboard: Tab reaches the four dots of the panel, real anchor links marked with aria-current="step", and Enter jumps to the step. Screen readers: the list reads in order, captions included, with nothing announced while scrolling. Animations only touch opacity and transform and play once per change. 44 px targets, AA contrast in light and dark mode, colours via variables, an offset adjustable with --efst-offset if your site has a sticky header. The number of steps is free: add a list item and a dot. No dependencies, no images.

Code

Loading the code…

The code of this component in

Archive contents

effet-defilement-fixe-etapes-sticky-html-tailwind.zip3 files · 8 Ko

  • index.html19 Ko
  • README.md4 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • Cards that fade in as they enter the screen, one after another in each row, without a line of JavaScript and with a static fallback.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A translucent card with a saturated blur whose sharper edge refracts the colourful shapes drifting behind it, with an opaque fallback when transparency is reduced.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A help block shaped like a conversation: bubbles, three animated typing dots and clickable quick replies that show your answers to frequent questions, frozen under prefers-reduced-motion.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component