uibrik

Outline then Fill

Preview

Customize

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

Usage

import { OutlineFill } from "@/components/uibrik/outline-fill/outline-fill";

<OutlineFill play={play} />

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.

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.