Black Friday: 30% off Pro

Get 30% off

Line-by-line Rise

Preview

Customize

Duration0.45s
Stagger0.08s
Text size48px

Installation

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

Usage

import { LineRise } from "@/components/uibrik/line-rise/line-rise";​const text = "Good interfaces reveal themselves one line at a time.";​<LineRise  play={0}  text={text}  duration={0.45}  stagger={0.08}/>

Where to use Line-by-line Rise

  • Long hero taglines

    Each wrapped line rising in turn keeps a two- or three-line headline readable as it enters.

  • Section intros

    Line-by-line entrances give paragraph-length intros rhythm on scroll.

    Pairs with Fade In Left to Right

  • Editorial openings

    Rising lines suit articles and blog posts that open with a statement.

Props

LineRise
text
Type string
"Good interfaces reveal themselves one line at a time."
The copy to animate.
duration
Type number
0.45
Time for each line to rise.
stagger
Type number
0.08
Delay between lines.
playrequired
Type number
–
Each change plays the effect again; 0 shows its resting state.