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 { GlassRefraction } from "@/components/effects/glass-refraction/glass-refraction";
export default function Background() {
return (
<GlassRefraction
className="h-svh w-full"
pattern="fluted"
cellSize={34}
strength={0.7}
angle={0}
chromatic={0.4}
frost={0}
speed={1}
parallax={true}
/>
);
}Controls
Reeded, ribbed, glass-block, frosted or rippled glass over an image, with colour fringes at the flute edges and cursor parallax. Refracts a built-in scene by default (works offline and in sandboxes) or any CORS image. Shared WebGL2 context; CSS stripes + backdrop-blur fallback.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| pattern | "fluted" | "ribbed" | "grid" | "frosted" | "ripple" | "fluted" | Pattern |
| cellSize | number (6 to 120) | 34 | Flute size |
| strength | number (0 to 1) | 0.7 | Strength |
| angle | number (-90 to 90) | 0 | Angle |
| chromatic |























