Reveal Loader
A cinematic reveal preloader using GSAP animations and the Anton font. Features staggered text reveals, gradient backgrounds, and customizable shutter effects.
Loading Preview...
Install using CLI
npx shadcn@latest add "https://www.vengenceui.com/r/reveal-loader.json"Install Manually
1
Install dependencies
2
Copy the source code
Copy the code below and paste it into components/ui/reveal-loader.tsx
Props
| Prop Name | Type | Default | Description |
|---|---|---|---|
| text | string | 'VENGEANCE' | The text to display during the loading animation. |
| textSize | string | '100px' | CSS font size for the loader text. |
| textColor | string | 'white' | CSS color for the loader text. |
| bgColors | string[] | ['#000000'] | Array of colors. Providing multiple creates a linear gradient. |
| staggerOrder | 'left-to-right' | 'right-to-left' | 'center-out' | 'edges-in' | 'left-to-right' | The order in which the background bars animate out. |
| movementDirection | 'top-down' | 'bottom-up' | 'fade-out' | 'scale-vertical' | 'top-down' | The animation style of the bars exiting. |
| textFadeDelay | number | 0.5 | Delay (in seconds) before the text fades out, relative to when bars start moving. |
| onComplete | () => void | - | Callback triggered when the entire animation finishes. |