Toggle Sidebar B
AppearanceLight & dark mode D

Stroke Text

Outlined letterforms draw themselves on, then flood with fill.

Default

Every prop is wired to the controls underneath. Any change replays the animation, and the refresh button replays it on demand.

Dark previewReplay previewOpen in new tab

Customize

Stroke
Fill
Trigger
Fill Mode
Ease
Stroke Width1.4
Draw Duration1.6s
Fill Delay0.2s
Stagger0.05s
Font Size128px
Font Weight800
Letter Spacing-4px

API Reference

StrokeText

PropTypeDefaultDescription
textstring"Draw Attention"The heading copy rendered as measured SVG glyphs.
strokeColorstring"#A78BFA"Color used for the drawing outline.
fillColorstring"#F8FAFC"Color that floods into the glyphs after the outline draw.
strokeWidthnumber1.4Width of the SVG text outline.
drawDurationnumber1.6Seconds each character outline spends drawing on.
fillDelaynumber0.2Seconds to wait after the outline draw before the fill begins.
staggernumber0.05Delay in seconds between each character animation.
easestring"power2.out"GSAP easing used for the outline draw.
trigger"mount" | "hover" | "scroll" | "loop""mount"Chooses when the draw timeline starts.
fillMode"fade" | "wipe" | "none""wipe"Controls whether fill appears with a fade, left-to-right wipe, or not at all.
fontSizenumber | string128SVG font size before the responsive viewBox scales the wordmark.
fontWeightnumber | string800Weight of the rendered letterforms.
letterSpacingnumber | string-4Tracking applied during measurement and rendering.
reversebooleanfalseDraws the stagger from the final character back to the first.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • The root has role img and an aria-label with the full text, and the SVG itself is hidden from assistive tech.
  • With prefers-reduced-motion the text renders fully drawn and filled, with no animation.