UI templates
Starting…
Pick a UI template to include it in the prompt.
Usage with these values
import { SoapFilm } from "@/components/scenes/soap-film";
export default function Background() {
return (
<SoapFilm
className="h-svh w-full"
coreColor="#ffffff"
midColor="#ff4fd8"
rimColor="#36c8ff"
accentColor="#fff7e0"
backgroundColor="#05040a"
detail={64}
size={1}
wobble={1}
lumps={1}
bands={1}
swirl={1}
sheen={1}
backGlow={0.5}
bloom={0.45}
speed={0.4}
spin={0.15}
reach={1}
ripple={1}
parallax={0.25}
quality="auto"
/>
);
}Colours
Controls
A full-bleed three.js soap-film blob: a wobbling, noise-displaced sphere whose surface swirls with thin-film colour built from the scene's own colours. It swells toward the cursor and ripples on click. Colours, shape and motion are all props.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| coreColor | string (hex colour) | "#ffffff" | Highlight |
| midColor | string (hex colour) | "#ff4fd8" | Film 1 |
| rimColor | string (hex colour) | "#36c8ff" | Film 2 |
| accentColor | string (hex colour) | "#fff7e0" |
More from Infinity UI
More in 3D Scenes
View all
RemixPebble Cluster
















