Split Screen Text

NewPremium

Text that splits apart vertically on scroll, revealing content underneath. Scroll-driven with sticky positioning.

textsplitscrollrevealanimated

Installation

Terminalbash
npx motioncraft add split-screen-text

Usage

split-screen-text.tsxtsx
import { SplitScreenText } from "@/components/text/split-screen-text";

<SplitScreenText
  topText="Discover"
  bottomText="Something New"
  revealContent={<img src="/reveal.jpg" alt="" />}
/>

Props

PropTypeDefaultDescription
topText*stringTop half text
bottomText*stringBottom half text
revealContent*ReactNodeContent revealed between split
classNamestringAdditional CSS classes

Related Components