UI templates
Starting…
Pick a UI template to include it in the prompt.
Usage with these values
import { StarTunnel } from "@/components/scenes/star-tunnel";
export default function Background() {
return (
<StarTunnel
className="h-svh w-full"
nearColor="#f2fff9"
midColor="#5dffc4"
farColor="#1d8a8f"
accentColor="#ffffff"
backgroundColor="#020807"
count={14000}
radius={3}
hollow={0.22}
pointSize={1.6}
brightness={1.2}
twinkle={0.4}
speed={5}
twist={0.04}
roll={0.06}
parallax={0.5}
cursorStrength={0.8}
quality="auto"
/>
);
}Colours
Controls
A full-bleed three.js tunnel of stars streaming toward the camera: stars wrap from the far end, fade in, rush past and fade out while the tube twists and rolls. Cursor push and a click flash. Colours, counts and motion are all props.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| nearColor | string (hex colour) | "#f2fff9" | Near |
| midColor | string (hex colour) | "#5dffc4" | Middle |
| farColor | string (hex colour) | "#1d8a8f" | Far |
| accentColor | string (hex colour) | "#ffffff" |
More from Infinity UI
More in 3D Scenes
View all
RemixPebble Cluster
















