Pin

Thin ergonomic wrapper around ScrollTrigger's pin option — keeps a section visible while you scroll past it.

Scroll down — the orange band stays pinned for one viewport.
Pinned section
Content after the pin.

Usage

import { Pin } from '@bwo-ui/react';

<Pin end="+=200%">
  <section className="hero">...</section>
</Pin>

Props

PropTypeDefaultDescription
startstring'top top'ScrollTrigger start.
endstring'+=100%'Distance to keep pinned (any ScrollTrigger end value).
pinSpacingbooleantrueAdd padding so following content does not jump.
enableMediastringMedia query gate — pin only when matched.
anticipatePinnumber0Smoother handling on fast scroll.