Skip to content
PixiKit

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
NameTypeDefaultDescription
textstring"Draw Attention"The heading.
strokeColorstring"#A78BFA"The colour of the drawn outline.
fillColorstring"currentColor"The colour that floods the letters after the outline. Follows the surrounding text by default.
strokeWidthnumber1.4The width of the outline, in pixels.
drawDurationnumber1.6How long each letter takes to draw, in seconds.
fillDelaynumber0.2The wait before a letter starts to fill, in seconds.
staggernumber0.05The delay between letters, in seconds.
easestring"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.
fontSizenumber128The largest font size, in pixels. The heading shrinks to fit narrower containers.
fontWeightnumber | string800The font weight.
fontFamilystring"inherit"The font family. Inherits the surrounding font by default.
letterSpacingnumber-4The tracking, in pixels at the largest size.
reversebooleanfalseDraws 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.
dashLengthnumber10The length of each dash, or the distance between dots, in pixels.
marchingbooleanfalseKeeps the dashes or dots moving around the letters once they are drawn.
hoverRedrawbooleanfalseDraws the outline again whenever the pointer enters, after the first draw.
shadowbooleanfalseAdds a soft offset shadow under the letters that lifts into place as the fill lands.
shadowColorstringNoneThe colour of the shadow. Uses the stroke colour when unset.
classNamestringNone
styleCSSPropertiesNone

More text effects in Pro

View all

Related