From Infinity UI by Infinity UI, LicenseRef-InfinityUI license.
UI templates
Starting…
Pick a UI template to include it in the prompt.
Usage with these values
import { PaperLayers } from "@/components/effects/paper-layers/paper-layers";
export default function Background() {
return (
<PaperLayers
className="h-svh w-full"
backColor="#f6a58c"
midColor="#c2457a"
frontColor="#1b1747"
backgroundColor="#fbd9bd"
shadowStrength={0.7}
layers={6}
waveHeight={0.07}
waveLength={1.1}
roughness={0.4}
tilt={0}
driftSpeed={1}
swell={0.5}
shadowSoftness={1}
shadowDistance={1}
fibre={0.5}
parallax={1}
lift={1}
interactive={true}
/>
);
}Colours
Controls
Stacked sheets of cut paper in flat colour drift past each other, each casting a soft shadow on the one behind. The cursor shifts the stack with depth and lifts the paper near it; a click sends a swell along every edge. One shader pass on a shared WebGL2 context; a composed still frame under reduced motion.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| backColor | string (hex colour) | "#f6a58c" | Colour of the sheet at the back of the stack. |
| midColor | string (hex colour) | "#c2457a" | Colour of the sheet in the middle of the stack; the sheets in between blend through it. |
| frontColor | string (hex colour) | "#1b1747" | Colour of the sheet at the front of the stack. |
| backgroundColor |























