tween
ComponentsTemplatesShowcaseContact

Command Palette

Search for a command to run...

Getting Started
  • Introduction
  • Installation
  • StoryNew
Guides
  • Motion Principles
  • Scroll and Smooth Scroll
  • Performance and Accessibility
Scroll Animations
  • Sticky Cards Scroll
  • Rise Fan Cards Scroll
  • Rotate Stack Scroll
  • Doodle Lens ScrollNew
  • Slit Open Hero ScrollNew
  • Logo Mask Zoom ScrollNew
  • ASCII Dissolve ScrollNew
  • Lottie Flight ScrollNew
  • Inline Icon Text ScrollNew
  • Starfield ScrollNew
  • Name Swap ScrollNew
  • Spotlight Gallery HeroNew
  • Slit Rotate Hero ScrollNew
  • Stroke Cover ScrollNew
  • Stroke Rows ScrollNew
Text Animations
  • Text Skew Reveal
  • Block Text Reveal
Hover & Cursor
  • Image Trail Cursor
  • Cursor Depth Logo
  • Physics Tag Drop
  • Elastic Card ListNew
  • Magnetic Cards SpringNew
Sliders & Carousels
  • Wheel Fullscreen Carousel
  • Ripple Displacement Slider
  • Three.js Blend Slider
  • Stacked Deck Slider
  • Orbit Cylinder SliderNew
  • Fan Stack SliderNew
  • Exponential Strip SliderNew
  • Dual Column SliderNew
Galleries & Grids
  • Scroll Wave Gallery
Menus & Navigation
  • Shrink Page MenuNew
Preloaders & Intros
  • Floating Items RevealNew
  • Word Cycle RevealNew
  • Tile Grid LoaderNew
Page Transitions
  • Panel Assembly TransitionNew
3D & WebGL
  • Fractal Glass Hero
  • Fluid Cursor Canvas
  • Fluid Portrait Hero
  • Fluid Gradient Canvas
  • Inversion Lens HoverNew
UI Elements
  • Circular Widgets
  • Vinyl Cover
  • Image Explosion Footer
  • Accordion Image FramesNew

(Tween) — Motion registry

Animated components & full sites, one command away.

Product

  • Components
  • Templates
  • Installation
  • Guides
  • Blog
  • Contact

Categories

  • Scroll Animations
  • Text Animations
  • Hover & Cursor
  • Sliders & Carousels
  • Galleries & Grids
  • Menus & Navigation
  • Preloaders & Intros
  • Page Transitions
  • 3D & WebGL
  • UI Elements
TWEEN
ease: power2.inOut0.00s
© 2026 TweenBack to topBuilt by mohammad
  1. Docs/
  2. Components/
  3. Tile Grid Loader

Tile Grid Loader

PreviousNext

A page-load reveal where a grid of tiles fills in at random while a progress marker hops between stops, then every tile collapses to uncover the hero.

Open in
tile-grid-loader-demo
Lumn
IndexStudioMethodInquire

Lumn

Composing light for screens and spaces

components/ui/tile-grid-loader-demo.tsx
import { TileGridLoader } from "@/registry/tween/tile-grid-loader"

export function TileGridLoaderDemo() {
  return <TileGridLoader />
}

Installation

pnpm dlx shadcn@latest add https://tweenui.dev/r/tile-grid-loader.json

Usage

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:

  • On mount the component measures its container and builds an odd-numbered grid of square tiles (about 85px wide on large containers, 50px on small ones), with one extra ring so it overflows the edges.
  • Four tiles on the middle row are the marker's stops. The rest fade in one by one in random order over 2.5 seconds.
  • A white marker sits on the first stop showing 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.
  • The loader background is removed so the tiles sit over the hero, then every tile collapses on scaleY from the top in random order.
  • The title letters rise in random order, followed by the subtitle lines and nav words.

The Replay button remounts the stage and rebuilds the grid for the current size. With prefers-reduced-motion: reduce the loader is skipped.

Props

PropTypeDefaultDescription
heroImagestringRemote photoFull-bleed hero image.
logostringInline SVG markShown in the marker when it reaches the centre.
titlestring"Lumn"Nav logo text and large hero title.
subtitlestringplaceholder lineHero subtitle.
navLinksstring[]4 linksNav links.
markerLabels[string, string, string]["25", "50", "75"]Marker text at the first three stops.
accentstring"#ff7a1a"Tile and title colour.
loaderBackgroundstring"#e7e2da"Background behind the tiles while they fade in.
showReplaybooleantrueShow the replay button.
classNamestring—Extra classes on the outer container.
Word Cycle RevealPanel Assembly Transition

On This Page

InstallationUsageProps

Contribute

  • Report an issue
  • Request a feature
  • Edit this page