A wall of frosted glass tiles over slowly drifting colour: soft, bright light inside each pane, sharp colour in the gaps, and a glint where the pointer is.
A field of dark glass tiles that tilt towards the cursor in 3D, catching a coloured light glowing behind them.
Customize
Usage
import { TiltTiles } from "@/components/motionkit/tilt-tiles";
<TiltTiles
className="h-[32rem] rounded-3xl"
>
<h1>Your headline</h1>
</TiltTiles>Motion
The exact curves this component runs, plotted with Motion's own maths.
Tiles tilt
Pointer moves
Creative studios, product heroes, 3D and design tools, and portfolio landing pages that want depth without a heavy 3D library.
The tiles are plain elements laid out in a CSS grid. Each frame, every tile's tilt eases towards a target set by its direction and distance from the pointer, using perspective transforms only, so the browser never has to lay the page out again. Behind them, a coloured glow follows the pointer and shows through the gaps and the glassy gradients on each tile.
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#5FAEB4" | Colour of the light behind the tiles. |
| tile | number | 64 | Tile size in pixels. |
| tilt | number | 28 | How far tiles tilt, in degrees. |
| interactive | boolean | true | Respond to the pointer; off, a slow wave rolls across. |
| children | ReactNode | — | Your content, layered above. |
How we audit: the WCAG 2.2 animation checklist and respecting reduced motion in React.
Yes. The file starts with "use client", so you can import it straight into a Server Component page or layout. It works in Vite as is, and in Astro as a React island.
Nothing beyond React and Tailwind CSS v4. There is no MotionKit package and no Tailwind config to add.
Yes, with MotionKit Plus. Add the @motionkit registry and your personal token to components.json (the snippet is on your account page), then run npx shadcn@latest add @motionkit/tilt-tiles. It saves the file to components/motionkit and installs its dependencies.
Tilt Tiles is part of MotionKit Plus (£12 / $15 / €14 a month or £96 / $120 / €112 a year). The live preview and playground are free to explore; Plus unlocks its source code, every customisation control and commercial use.
With reduced motion on, there's no idle wave and tiles turn to the pointer without easing. It pauses while off screen.
A wall of frosted glass tiles over slowly drifting colour: soft, bright light inside each pane, sharp colour in the gaps, and a glint where the pointer is.
Ribbons of iridescent glass drifting through the dark, twisting to bright edges side-on and blooming with colour face-on, like light on a soap film.
An isometric field of extruded tiles rising and falling in slow, overlapping waves, crests glowing, with a ripple wherever the cursor passes.
Move the cursor
The live preview is free to explore. Plus unlocks the source for Tilt Tiles and every other premium component.
Not ready for Plus? A free account unlocks 4 premium components, Depth Card, Rolling Text, Dot Wave and Confetti Button, with no card needed.
Customize
Usage
import { TiltTiles } from "@/components/motionkit/tilt-tiles";
<TiltTiles
className="h-[32rem] rounded-3xl"
>
<h1>Your headline</h1>
</TiltTiles>Motion
The exact curves this component runs, plotted with Motion's own maths.
Tiles tilt
Pointer moves
Move the cursor