ZeroGravity UI

Typographystable

Sash

Marquee band

An endless band of words or logos at a constant speed, paused on hover, focus and offscreen.

PointerScrollTypographySurfacesMediaInterface
SVGCSSCanvasNo dependenciesSSRReduced motion

Customize

Bandconstant speed, whatever the content
variant
60 px/sspeed
direction
40 pxgap
fade
Pausingkeyboard focus always pauses
pauseOnHover
paused

Usage

TSX
import { Sash } from "zerogravity/sash"

<Sash>
    <span>Pointer</span>
    <span>Scroll</span>
    <span>Typography</span>
</Sash>

Generated from the controls above. Only props that differ from their defaults are shown.

Props

11 documented props on Sash
PropertyTypeDefaultDescription
variant"pixel" | "classic" | "glass""pixel"Style.
speednumber60Speed. Range 10 to 240 px/s.
direction"left" | "right""left"Direction.
gapnumber40Gap. Range 0 to 120 px.
fadebooleanfalseFade the edges.
pauseOnHoverbooleantruePause on hover.
pausedbooleanfalsePaused.
childrenReactNode—One run of the band, repeated as often as the width needs.
labelstring—Makes the band a named region.
disabledbooleanfalseStatic, wrapped content.
respectReducedMotionbooleantrueStop and wrap when the reader prefers reduced motion.

Dependencies

0 external runtime dependencies

Ships with nothing but React.