Text Loop(005)
Smooth horizontal ticker loop that scrolls text infinitely across the viewport.
Scroll
Requires:gsap
Loading…
Installation
$npx kibo add text-loop
Usage
Props Reference
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | "React ✦ Bits" | The text to loop. |
shape | TextLoopShape | "wave" | Pre-defined SVG path shapes. |
path | string | - | Custom SVG path string. Overrides `shape` if provided. |
speed | number | 90 | Animation speed. |
direction | TextLoopDirection | "forward" | Animation direction. |
separator | string | "✦" | Separator character between text repetitions. |
curviness | number | 90 | Intensity of the curve (applicable to certain shapes). |
fontSize | number | 46 | Font size of the text. |
fontWeight | number | string | 800 | Font weight of the text. |
letterSpacing | number | 2 | Letter spacing of the text. |
uppercase | boolean | true | Whether to transform text to uppercase. |
color | string | "#ffffff" | Text color. |
ribbon | boolean | true | Whether to render a background ribbon path. |
ribbonColor | string | "#5227FF" | Color of the ribbon stroke. |
ribbonWidth | number | 86 | Width of the ribbon stroke. |
pauseOnHover | boolean | true | Pause animation on hover. |
className | string | "" | Additional CSS classes. |
style | CSSProperties | {} | Additional inline styles. |