Skip to content
PixiKit

Marquee

An endless strip that drifts left, right, up or down, pauses on hover, fades at the edges and can be dragged.

pixikit.com/docs/components/marquee

Customize

Direction
Speed40px/s
Gap12px
Pause on hover
Fade
Draggable
Font size18px
Height320px

Props

11
NameTypeDefaultDescription
childrenReactNodeNoneWhat scrolls past: logos, chips, cards. It repeats as often as the strip needs to stay full. Left out, `items` show as chips.
itemsstring[]["Aurora", "Split Flap", "Border Beam", "Dot Wave", "Orbit", "Gradient Text"]The words shown as chips when there are no children.
direction"left" | "right" | "up" | "down""left"The way the strip moves.
speednumber40How fast the strip moves, in pixels per second.
gapnumber12The space between items, in pixels.
pauseOnHoverbooleantrueStop while the pointer is over the strip or something in it has keyboard focus.
fadebooleantrueFade the strip out at both ends.
draggablebooleanfalseDrag the strip to scroll it; it glides on after a flick, then drifts again.
fontSizenumber18The text size of the chips made from `items`, in pixels; the chips grow with it. Children are left as they are.
heightnumber320The strip's height in pixels when it moves up or down.
classNamestringNone

Related