# Service Index Scrub

**Group:** Layout, lists and widgets  
**Recording:** [https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/service-index-scrub.mp4](https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/service-index-scrub.mp4)  
**Source:** [https://ui.aryank.space/components/service-index-scrub](https://ui.aryank.space/components/service-index-scrub)  
**Human:** https://blankinterfaces.com/lab/service-index-scrub

---

## What it is

A pinned services index where scroll distance is the selector: every viewport height advances one service, so the list steps discretely rather than scrubbing. A black indicator bar slides down by exactly one row height and resizes to the width of the label it lands on, measured off-screen at the real display font before anything animates, so it hugs each name instead of using a fixed width. A single tall image strip translates by one image height in step with it, and the body copy swaps by splitting to lines, lifting them out, replacing the text, and dropping the new lines back in. GSAP ScrollTrigger, SplitText, and Lenis.

## Behaviour

### Distance selects, it does not scrub

The active index is the floor of scroll distance over one viewport, so each service holds for a full screen and the change is a discrete transition rather than a scrubbed one.

### Label widths are measured, not guessed

A hidden node is rendered at the real display font and each label's width read off it before anything animates. That is what lets the indicator hug names of very different lengths.

### One strip, not eight crossfades

All the images live in a single tall column translated by exactly one image height, so the media change is one transform and can never desync from the label.

---

[View all content](https://blankinterfaces.com/sitemap.md)
