Hero Templates

Monolith

A monumental slab floating over a reflective grid floor, rendered as a fogged 3D scene you can orbit.

Install

bun add three

Then copy 2 files into your project:

  • components/registry/monolith/monolith.tsx
  • hooks/use-animation-loop.ts

Props

PropTypeDefaultDescription
slabColorstring (hex)"#241d3e"Base stone color of the slab.
rimColorstring (hex)"#a855f7"Fresnel edge light on the slab.
sunbooleanfalseShow the sun. Off leaves the sky to the stars.
sunColorstring (hex)"#4c1d95"Color of the sun and the tint it throws on the slab.
backgroundColorstring (hex)"#05040a"Sky and fog color.
spinSpeednumber0.03Idle yaw rate while nothing is held.
floatAmpnumber0.08Bob lift-off amplitude — 0.00 rests the slab on the grid.
scalenumber1Slab size multiplier — grows up from its hover height; 1 is the minimum.
zoomnumber1Camera distance multiplier.
autoSpinbooleantrueResume idle rotation when the drag ends.
parallaxbooleanfalseThe view leans toward the pointer, easing back on leave.

What It Demonstrates

Loop
An animation that repeats, a set number of times or infinitely.
Idle animation
Subtle motion that plays while an element is just sitting there, waiting to be interacted with.
Perspective
How strong the 3D effect looks — a lower value exaggerates depth, like the viewer is closer.
Hardware acceleration
Animating transform and opacity lets the GPU keep motion smooth.

Related Components

Appears In