Skip to content
WunderUI
All effectsNavigation

Read Rail

A marker runs down the table of contents as you scroll, showing where you are.

Pure CSSNavigationPro

Meant for

Floating TOCTimelineAgent Plan

Usage

On a Floating TOC

Scroll the guide — with the wheel, a finger, or focus it and use the arrow keys. The gradient head runs down the Floating TOC's rail exactly as far as you read, top at the start, bottom at the end. It rides a named scroll timeline (the article is data-wm-scroller, the card data-wm-scope), so it needs no script; where the browser has no scroll timelines, a scroll listener writes --wm-progress and the same keyframes draw it. Until you scroll, the preview sends the head round on a timer.

Install

Add the package and import the stylesheet once. Nothing to initialise and no runtime.

Add the package and import the stylesheet once. Nothing to initialise and no runtime.

Triggers

Entrances play once, ambient effects loop, states transition, and gestures follow the numbers your script writes.

Entrances play once, ambient effects loop, states transition, and gestures follow the numbers your script writes.

Knobs

Every effect reads the same custom properties: duration, accent colours, the ring and the surface behind it.

Every effect reads the same custom properties: duration, accent colours, the ring and the surface behind it.

Reduced motion

With motion reduced, effects rest in their end state; gestures and scroll still follow the hand, and a wait stays a wait.

With motion reduced, effects rest in their end state; gestures and scroll still follow the hand, and a wait stays a wait.

Recipes

Put an effect on a part and drive it from its control, loop a whole style guide, or retime one section.

Put an effect on a part and drive it from its control, loop a whole style guide, or retime one section.

The class is wm wm-read-rail — the first half is the marker the trigger and reduced-motion rules hook into, the second is the effect.