Draw Line Text Animation
A smooth text effect that draws characters as strokes and fills them in, perfect for headers and highlights.
Perfect for headers and highlights.
Installation
Usage
1import { DrawLineText } from '@/components/pumki-ui/text/draw-line-text';1<DrawLineText2 className="font-medium"3 fontSize={60}4 strokeWidth={1.5}5 text="Ansh Singh Snkhia"6 color="var(--color-foreground)"7 />Examples
At once
Set `oneByOne` to `false` to animate all characters together without any stagger.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | - | Text to display |
afterFill | boolean | true | Show fill after stroke |
oneByOne | boolean | true | Animate letters one by one |
fontSize | number | 40 | Font size in px |
wordSpacing | number | 10 | Space between words |
strokeWidth | number | 1 | Stroke width in px |
letterSpacing | number | 0 | Space between letters |
color | string | - | Text color |
Last updated on