Getting Started
Scroll Animations
Text Animations
Hover & Cursor
Sliders & Carousels
Galleries & Grids
Menus & Navigation
Preloaders & Intros
Page Transitions
3D & WebGL
import { TileGridLoader } from "@/registry/tween/tile-grid-loader"
export function TileGridLoaderDemo() {
return <TileGridLoader />
}
import { TileGridLoader } from "@/components/ui/tile-grid-loader"<TileGridLoader
title="Lumn"
subtitle="Composing light for screens and spaces"
heroImage="https://images.unsplash.com/photo-1791739792703-c88fe8d408be?q=80&w=2400&h=1500&fit=crop"
accent="#ff7a1a"
/>How it works:
25. Flip moves it to the next stop with 50, then 75, and finally to the centre tile where it shows the logo. The stops it leaves behind turn the accent colour.scaleY from the top in random order.The Replay button remounts the stage and rebuilds the grid for the current size. With prefers-reduced-motion: reduce the loader is skipped.
| Prop | Type | Default | Description |
|---|---|---|---|
heroImage | string | Remote photo | Full-bleed hero image. |
logo | string | Inline SVG mark | Shown in the marker when it reaches the centre. |
title | string | "Lumn" | Nav logo text and large hero title. |
subtitle | string | placeholder line | Hero subtitle. |
navLinks | string[] | 4 links | Nav links. |
markerLabels | [string, string, string] | ["25", "50", "75"] | Marker text at the first three stops. |
accent | string | "#ff7a1a" | Tile and title colour. |
loaderBackground | string | "#e7e2da" | Background behind the tiles while they fade in. |
showReplay | boolean | true | Show the replay button. |
className | string | — | Extra classes on the outer container. |