Menu
All plugins

Sticky Showcase for Bricks

A picture (or the text) stays pinned on screen while a series of steps scrolls past. The pinned panel changes as each step reaches the middle of the screen. Good for feature tours, product stories and step-by-step explanations.

Open the live demo

Adding it

  1. Add Sticky Showcase to a section or container.
  2. Open Steps and add one entry per step: a title, some text, and an image (or a video address).
  3. Choose a layout and, if you like, step marks.

Layouts

  • Media pinned, text scrolls: the picture stays on one side while the steps scroll past on the other. Choose the side, the width of the pinned column and its height.
  • Text pinned, media scrolls: the reverse. The current step’s text stays pinned while its picture scrolls past.
  • Full-width background: the picture fills the width of the screen and stays put, with the steps scrolling over it on a coloured overlay. Set the overlay, the text colour and an optional card behind the text. Put the element in a container with no width limit for a full-bleed result.

Steps

  • Each step has a title, rich text, an image and a description (alt text) for the image. Text and titles accept dynamic data.
  • Add a video address (mp4 or webm) and it plays silently and loops while the step is current. The image is used as the poster. Videos are only loaded when needed.
  • Height of each step sets how much scrolling each step gets.

Motion and behaviour

  • Change between steps: crossfade, fade and rise, fade and zoom, or instant, with a duration.
  • Current step line: the step whose middle is nearest this line (50% of the screen height by default) is the current one.
  • Dim the steps that are not current, and set how visible they stay.
  • Snap: a gentle scroll snap to each step while the showcase is on screen. It is turned off automatically when the layout is stacked.

Step marks

Dots, lines or numbers, along the bottom or down the side of the pinned panel. They show the current step and are real buttons: pressing one scrolls to that step.

Small screens

Pinned layouts need room. Choose where the layout becomes stacked (tablet, large phone, phone only, or never). Stacked means nothing is pinned: every step shows its own picture above its text.

Accessibility

  • The steps are a real ordered list in reading order, and the marks are labelled buttons (“Go to step 2: Title”). The current mark is marked with aria-current.
  • Pictures that are not showing are hidden from screen readers.
  • With reduced-motion turned on, changes are instant, nothing autoplays and videos get their own controls.

For developers

  • window.SHFB.go(element, index) scrolls to a step.
  • Each showcase fires a shfb:step event with detail.index, and sets data-sh-cur and a --sh-p progress value (0 to 1) on its root.

Good to know

  • Pinning uses position: sticky. It stops working if a parent element has overflow: hidden; use overflow: clip instead.
  • If you have a sticky header, raise Distance from the top while pinned to clear it.