- Docs
- Components
- Text
- Bending Marquee
Bending Marquee
A marquee that bends along a curve as it scrolls
Customize
Props
25| Name | Type | Default | Description |
|---|---|---|---|
items | string[] | 3 phrases | Phrases repeated along the strip. |
separator | string | "✳" | Glyph printed between phrases. |
panelWidth | number | 420 | Width of the flat centre panel in pixels. The folded panels size themselves to reach the container edges. |
panelHeight | number | 520 | Height of every panel in pixels. |
bend | number | 50 | Angle the outer wings fold back by, in degrees. |
depth | number | -200 | How far the whole triptych sits behind the screen. |
perspective | number | 800 | Perspective depth of the scene, in pixels. |
speed | number | 16 | Seconds the strip takes to travel one full repeat. |
direction | "left" | "right" | "left" | Travel direction of the strip. |
rows | number | 1 | Number of stacked bands per panel. Extra bands alternate direction. |
rowGap | number | 22 | Vertical space between bands in pixels. |
itemGap | number | 26 | Horizontal space between phrases in pixels. |
bandPadding | number | 18 | Vertical padding inside a band in pixels. |
fontSize | number | 34 | Font size of the phrases in pixels. |
fontWeight | number | 600 | Font weight of the phrases. |
letterSpacing | number | 1 | Letter spacing of the phrases in pixels. |
color | string | "#fafafa" | Text colour. |
bandColor | string | "#111111" | Solid fill behind each band. |
markSway | number | 14 | Degrees the separator rocks back and forth. |
pauseOnHover | boolean | true | Ease the strip to a halt while the pointer is over the scene. |
pauseDamping | number | 0.7 | Seconds the strip takes to settle when hover starts or ends. |
fit | boolean | true | Scale the triptych so the panels fill the container height. |
maxScale | number | 1 | Upper bound applied to the fit scale. |
className | string | - | Optional className applied to the root. |
style | CSSProperties | - | Optional inline style applied to the root. |
itemsstring[]Phrases repeated along the strip.
3 phrasesseparatorstringGlyph printed between phrases.
"✳"panelWidthnumberWidth of the flat centre panel in pixels. The folded panels size themselves to reach the container edges.
420panelHeightnumberHeight of every panel in pixels.
520bendnumberAngle the outer wings fold back by, in degrees.
50depthnumberHow far the whole triptych sits behind the screen.
-200perspectivenumberPerspective depth of the scene, in pixels.
800speednumberSeconds the strip takes to travel one full repeat.
16direction"left" | "right"Travel direction of the strip.
"left"rowsnumberNumber of stacked bands per panel. Extra bands alternate direction.
1rowGapnumberVertical space between bands in pixels.
22itemGapnumberHorizontal space between phrases in pixels.
26bandPaddingnumberVertical padding inside a band in pixels.
18fontSizenumberFont size of the phrases in pixels.
34fontWeightnumberFont weight of the phrases.
600letterSpacingnumberLetter spacing of the phrases in pixels.
1colorstringText colour.
"#fafafa"bandColorstringSolid fill behind each band.
"#111111"markSwaynumberDegrees the separator rocks back and forth.
14pauseOnHoverbooleanEase the strip to a halt while the pointer is over the scene.
truepauseDampingnumberSeconds the strip takes to settle when hover starts or ends.
0.7fitbooleanScale the triptych so the panels fill the container height.
truemaxScalenumberUpper bound applied to the fit scale.
1classNamestringOptional className applied to the root.
-styleCSSPropertiesOptional inline style applied to the root.
-