Typographystable
Sash
Marquee band
An endless band of words or logos at a constant speed, paused on hover, focus and offscreen.
PointerScrollTypographySurfacesMediaInterface
Customize
Bandconstant speed, whatever the content
variant60 px/s
speeddirection40 px
gapfadePausingkeyboard focus always pauses
pauseOnHoverpausedUsage
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
| Property | Type | Default | Description |
|---|---|---|---|
variant | "pixel" | "classic" | "glass" | "pixel" | Style. |
speed | number | 60 | Speed. Range 10 to 240 px/s. |
direction | "left" | "right" | "left" | Direction. |
gap | number | 40 | Gap. Range 0 to 120 px. |
fade | boolean | false | Fade the edges. |
pauseOnHover | boolean | true | Pause on hover. |
paused | boolean | false | Paused. |
children | ReactNode | — | One run of the band, repeated as often as the width needs. |
label | string | — | Makes the band a named region. |
disabled | boolean | false | Static, wrapped content. |
respectReducedMotion | boolean | true | Stop and wrap when the reader prefers reduced motion. |
Dependencies
0 external runtime dependencies
Ships with nothing but React.