UI templates
Pick a UI template to include it in the prompt.
Usage with these values
import { RingTransit } from "@/components/scenes/ring-transit";
export default function Background() {
return (
<RingTransit
className="h-svh w-full"
coreColor="#e8f4ff"
midColor="#4f7dff"
rimColor="#b14dff"
accentColor="#ffb36b"
backgroundColor="#04040b"
followScroll={true}
progress={0.5}
smoothing={0.4}
travel={0.9}
gateCount={34}
seed={7}
thickness={0.035}
curvature={1}
gateRadius={1.3}
innerArc={0.6}
glow={1.5}
dust={0.7}
fog={0.5}
farGlow={0.5}
bloom={0.8}
bank={0.7}
spin={0.3}
burst={1}
parallax={0.4}
quality="auto"
/>
);
}Colours
Controls
A full-bleed three.js scene for landing pages: scrolling the page flies the camera along a seeded spline through a corridor of glowing gates, banking into the turns, past drifting dust toward a glow at the far end. Gates shade from the core colour through mid to rim along the way, with an accent gate every fifth. Follows the window, an element's scroll position or a progress value, with critically damped smoothing; a click flashes the gates. Colours, path and timing are all props.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| coreColor | string (hex colour) | "#e8f4ff" | Near gates |
| midColor | string (hex colour) | "#4f7dff" | Middle gates |
| rimColor | string (hex colour) | "#b14dff" | Far gates |
| accentColor |
More from Infinity UI
More in 3D Scenes
View all
RemixPebble Cluster
















