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
Monolith Atrium
Alpine Mist
Refracted Prism
Concrete Spiral
Quiet Horizon

Customize

1x
165px
0.36
Slow on Hover

Installation

$pnpm dlx yourbrand@latest add @yourbrand/OrbitImages-TS-TW
Usage (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

PropTypeDefaultDescription
speednumber1Angular velocity multiplier.
radiusXnumber165Horizontal ellipse semi-axis.
tiltnumber0.36Vertical compression factor.
pauseOnHoverbooleantrueReduce orbit speed while hovering.