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

1import { TextLoop } from "@/components/kibo/text-loop/component";
2
3export default function MyComponent() {
4 return (
5 <div className="relative w-full">
6 <TextLoop
7 text="Limitless Design"
8 shape="infinity"
9 separator="✦"
10 ribbonColor="#3b82f6"
11 ribbonWidth={100}
12 />
13 </div>
14 );
15}

Props Reference

PropTypeDefaultDescription
textstring"React ✦ Bits"The text to loop.
shapeTextLoopShape"wave"Pre-defined SVG path shapes.
pathstring-Custom SVG path string. Overrides `shape` if provided.
speednumber90Animation speed.
directionTextLoopDirection"forward"Animation direction.
separatorstring"✦"Separator character between text repetitions.
curvinessnumber90Intensity of the curve (applicable to certain shapes).
fontSizenumber46Font size of the text.
fontWeightnumber | string800Font weight of the text.
letterSpacingnumber2Letter spacing of the text.
uppercasebooleantrueWhether to transform text to uppercase.
colorstring"#ffffff"Text color.
ribbonbooleantrueWhether to render a background ribbon path.
ribbonColorstring"#5227FF"Color of the ribbon stroke.
ribbonWidthnumber86Width of the ribbon stroke.
pauseOnHoverbooleantruePause animation on hover.
classNamestring""Additional CSS classes.
styleCSSProperties{}Additional inline styles.