Black Friday: 30% off Pro

Get 30% off

Outline then Fill

Preview

Sketched, then filled

Customize

Trace1.0s
Fill0.40s
Fill delay0.80s
Stroke0.75
Text size48px

Installation

npx shadcn@latest add https://uibrik.com/r/outline-fill.json
Adds the files to components/uibrik/outline-fill and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/outline-fill.

Usage

import { OutlineFill } from "@/components/uibrik/outline-fill/outline-fill";​<OutlineFill  play={0}  text="Sketched, then filled"  traceDuration={1}  fillDuration={0.4}  fillDelay={0.8}  strokeWidth={0.75}/>

Where to use Outline then Fill

  • Hero headlines

    Letters drawn as outlines then filled give a heading a crafted entrance.

  • Logo reveals

    Outlining then filling works well for wordmarks on intros.

  • Brand sites

    A sketch-to-solid reveal suits design and architecture brands.

Props

OutlineFill
text
Type string
"Sketched, then filled"
The copy to animate.
traceDuration
Type number
1
Time to trace the outlines.
fillDuration
Type number
0.4
Time for the ink to fill in.
fillDelay
Type number
0.8
Wait before the fill starts.
strokeWidth
Type number
0.75
Outline width.
playrequired
Type number
–
Each change plays the effect again; 0 shows its resting state.