← Library
Sideways motion

Horizontal Lock Rail

The page pins and your vertical wheel input becomes horizontal travel across a rail of cards. Releases cleanly at both ends so the user never feels trapped.

Difficulty
Flagship
Credits saved
~280
Access
Free

Technique

Sticky stage inside a wrapper whose height equals rail width. translateX = -(railWidth - viewportWidth) * progress. No wheel hijacking — native scroll drives everything, so trackpads, keyboards and touch all behave.

Choreography spec

100vh + (railWidth − viewportWidth)

  • 0 → 1translateX travels the full rail overflow
  • continuouscard nearest centre lifts 1.5% and brightens

Reversibility

Pure translate off native scroll position.

Reduced motion

Native overflow-x scroll-snap carousel, no pin.

horizontal-lock-rail.prompt
Build a "horizontal-lock-rail" section for my landing page.

TECHNIQUE
Sticky stage inside a wrapper whose height equals rail width. translateX = -(railWidth - viewportWidth) * progress. No wheel hijacking — native scroll drives everything, so trackpads, keyboards and touch all behave.

SPEC
██████████████████████████████████████████████
██████████████████████████████████████
████████████████████████████████████████████████████

RULES
████████████████████████████████████████████
██████████████████████████████████████████████████

Full prompt copies straight to your clipboard.