Text Reveal (Mask) Demo
sora-ui/demo-text-reveal-maskFreeComponent
Scroll-triggered masked text reveal with rich text emphasis.
Install it
npx shadcn@latest add https://ui.soralabs.io.vn/r/demo-text-reveal-mask.jsonSource
1"use client";23import {4 MaskedTextReveal,5 type MaskedTextRevealProps,6} from "@/components/sora-ui/texts/text-reveal-mask";78export default function MaskedTextRevealExample({9 splitBy = "lines",10 stagger = 0.1,11 duration,12 yPercent = 110,13 delay = 0,14 viewportMargin = "0px 0px -20% 0px",15 className = "mx-auto max-w-3xl text-center font-normal text-xl leading-snug tracking-[-0.02em] text-foreground/75 [&_strong]:font-medium [&_strong]:text-foreground",16}: MaskedTextRevealProps) {17 return (18 <div className="w-full">19 <MaskedTextReveal20 as="h2"21 className={className}22 delay={delay}23 duration={duration}24 splitBy={splitBy}25 stagger={stagger}26 viewportMargin={viewportMargin}27 yPercent={yPercent}28 >29 Every stride is a statement. Every finish line a new beginning. We build30 gear for athletes who refuse to settle for{" "}31 <strong>yesterday's pace</strong>. Push beyond limits. Outrun32 expectations. This is where <strong>champions are made</strong>.33 </MaskedTextReveal>34 </div>35 );36}
What it pulls in
Other registry items
Files it writes
More from Sora UI
All 97 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | Sora UI | Components | Free | 2 deps | |
| Border Trailborder-trail | Sora UI | Components | Free | 1 dep | |
| Bottom Sheetbottom-sheet | Sora UI | Components | Free | 2 deps | |
| Cursor Bubblecursor-bubble | Sora UI | Components | Free | 2 deps | |
| Cursor Trail Revealcursor-trail-reveal | Sora UI | Components | Free | 1 dep | |
| Custom Cursorcustom-cursor | Sora UI | Components | Free | 2 deps | |
| Accordion Demodemo-accordion | Sora UI | Components | Free | no deps | |
| Border Trail Demodemo-border-trail | Sora UI | Components | Free | no deps |
