Outline Draw
A heading drawn on as outlines: each letter traces itself, then the fill wipes or fades in. Solid, dashed or dotted strokes, marching dashes, a soft shadow, redraw on hover and a loop.
pixikit.com/docs/effects/outline-draw
Customize
Stroke color
Fill color
Stroke width1.4px
Draw duration1.6s
Fill delay0.20s
Stagger0.050s
Ease
Trigger
Fill mode
Wipe from
Font size128px
Font weight800
Font family
Letter spacing-4.0px
Reverse
Stroke style
Dash length10px
Marching
Hover redraw
Shadow
Shadow color
Props
24| Name | Type | Default | Description |
|---|---|---|---|
text | string | "Draw Attention" | The heading. |
strokeColor | string | "#A78BFA" | The colour of the drawn outline. |
fillColor | string | "currentColor" | The colour that floods the letters after the outline. Follows the surrounding text by default. |
strokeWidth | number | 1.4 | The width of the outline, in pixels. |
drawDuration | number | 1.6 | How long each letter takes to draw, in seconds. |
fillDelay | number | 0.2 | The wait before a letter starts to fill, in seconds. |
stagger | number | 0.05 | The delay between letters, in seconds. |
ease | string | "power2.out" | The easing of the outline draw: 'power1' to 'power4', 'sine', 'expo', 'circ', 'back' or 'elastic' with '.in', '.out' or '.inOut', or 'none'. |
trigger | "mount" | "hover" | "scroll" | "loop" | "mount" | When the drawing starts. Loop draws on, plays back out and draws again. |
fillMode | "fade" | "wipe" | "none" | "wipe" | Whether the fill fades in, wipes in from one side, or stays off. |
wipeFrom | "left" | "right" | "top" | "bottom" | "left" | The side the wipe comes from. Bottom fills the letters like rising liquid. |
fontSize | number | 128 | The largest font size, in pixels. The heading shrinks to fit narrower containers. |
fontWeight | number | string | 800 | The font weight. |
fontFamily | string | "inherit" | The font family. Inherits the surrounding font by default. |
letterSpacing | number | -4 | The tracking, in pixels at the largest size. |
reverse | boolean | false | Draws from the last letter back to the first. |
strokeStyle | "solid" | "dashed" | "dotted" | "solid" | The line style of the outline. Dashed and dotted outlines still draw on. |
dashLength | number | 10 | The length of each dash, or the distance between dots, in pixels. |
marching | boolean | false | Keeps the dashes or dots moving around the letters once they are drawn. |
hoverRedraw | boolean | false | Draws the outline again whenever the pointer enters, after the first draw. |
shadow | boolean | false | Adds a soft offset shadow under the letters that lifts into place as the fill lands. |
shadowColor | string | None | The colour of the shadow. Uses the stroke colour when unset. |
className | string | None | |
style | CSSProperties | None |