
Split-Flap Display
A ceramic and graphite split-flap device that ripples each flap into your message.
Real refraction, where feDisplacementMap warps the actual pixels sitting behind the card instead of blurring them.
Refraction Glass Container is a React and Tailwind CSS glassmorphism card that bends the content behind it instead of only blurring it, in Next.js or any React app. An inline SVG filter of turbulence, displacement, and blur is applied through backdrop-filter, so the pixels under the card are physically warped like frosted glass. Animated blobs sit behind it by default so the refraction reads, and distortion, blur, and blob colors are props. Reduced motion stills the blobs. Browsers without SVG filter support in backdrop-filter fall back to the plain blur, so check Safari and Firefox.
Run the following command
pnpm dlx wensity@latest add refraction-glass-container
npx wensity@latest add refraction-glass-container
yarn dlx wensity@latest add refraction-glass-container
bunx wensity@latest add refraction-glass-container
Import RefractionGlassContainer from @/components/wensity/refraction-glass-container and render it anywhere in your React or Next.js app. The source lands in your own repo, so every prop, class and animation below is yours to edit.
import { RefractionGlassContainer } from "@/components/wensity/refraction-glass-container";export default function Example() {return (<RefractionGlassContainer width={420} minHeight={260} distortion={14} blur={14}><div className="font-display text-xl font-bold">Bent light, not blur.</div><p className="mt-2 text-sm opacity-80">SVG feDisplacementMap warps every pixel behind this card.</p></RefractionGlassContainer>);}
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | - | Content rendered inside the glass card. |
width | number | string | 380 | Card width. |
minHeight | number | 220 | Card minimum height. |
distortion | number | 14 | Strength of the refraction warp in pixels. |
blur | number | 14 | Backdrop blur strength in pixels. |
padding | number | string | 24 | Inner padding. |
showBlobs | boolean | true | Render the animated blobs behind the glass. |
blobColors | [string, string, string] | - | Override blob colours. |
background | string | - | Background tint behind blobs. |

A ceramic and graphite split-flap device that ripples each flap into your message.

A 3D Earth lit day and night from the real sun position, wrapped in a soft atmosphere, with smooth drag-to-orbit controls.

Inline or toggled code diffs rendered inside the same polished code block frame, flipping between before and after.

A terminal UI with self-typing commands, CRT phosphor glow and scanlines, streaming output that never re-renders a line.
Featured in React 3D components.