Stroke Text(027)

Vector outline drawing animation sketching letter paths with SVG stroke transitions.

Scroll
Requires:gsap
Loading…

Installation

$npx kibo add stroke-text

Usage

1import { StrokeText } from "@/components/kibo/stroke-text/component";
2
3export default function Example() {
4 return (
5 <StrokeText />
6 );
7}

Props Reference

PropTypeDefaultDescription
textstringDEFAULT_TEXTThe text content to display and animate.
strokeColorstring'#A78BFA'Controls the stroke color for the component animation.
fillColorstring'#F8FAFC'Controls the fill color for the component animation.
strokeWidthnumber1.4Controls the stroke width for the component animation.
drawDurationnumber1.6Controls the draw duration for the component animation.
fillDelaynumber0.2Controls the fill delay for the component animation.
staggernumber0.05Stagger delay in seconds between individual characters/elements.
easestring'power2.out'GSAP or cubic-bezier easing curve for animation smoothing.
triggerStrokeTextTrigger'mount'Controls the trigger for the component animation.
fillModeStrokeTextFillMode'wipe'Controls the fill mode for the component animation.
fontSizenumber128Font size in pixels, rems, or fluid clamp notation.
fontWeightnumber | string800Font weight (e.g., 400, 700, 900, 'bold').
letterSpacingnumber-4Controls the letter spacing for the component animation.
reversebooleanfalseControls the reverse for the component animation.
classNamestring''Additional CSS classes for styling and layout.
styleCSSProperties{}Controls the style for the component animation.