Orbit Images
Smoothly revolves curated media plates around an angled 3D elliptical trajectory with automatic depth sorting, hover slow-down, and crisp framing.
#orbit#gallery#3d#media





Customize
1x
165px
0.36
Slow on Hover
Installation
$pnpm dlx yourbrand@latest add @yourbrand/OrbitImages-TS-TWUsage (synced with live props)
<OrbitImages
speed={1}
radiusX={165}
tilt={0.36}
pauseOnHover
/>Source Code
OrbitImages.tsx"use client";
import React from "react";
export interface OrbitImagesProps {
speed?: number;
radiusX?: number;
tilt?: number;
pauseOnHover?: boolean;
}
export function OrbitImages({
speed = 1.0,
radiusX = 165,
tilt = 0.36,
pauseOnHover = true,
}: OrbitImagesProps) {
return (
<div
className="relative flex h-80 w-full items-center justify-center overflow-hidden rounded-2xl"
data-speed={speed}
data-radius={radiusX}
data-tilt={tilt}
data-pause={pauseOnHover}
/>
);
}
Props API
| Prop | Type | Default | Description |
|---|---|---|---|
| speed | number | 1 | Angular velocity multiplier. |
| radiusX | number | 165 | Horizontal ellipse semi-axis. |
| tilt | number | 0.36 | Vertical compression factor. |
| pauseOnHover | boolean | true | Reduce orbit speed while hovering. |