Component packs › Liquid Glass › Refract Card
Real refraction: the glass bends and color-splits the moving background as the card floats after your cursor.
Refract Card is a card from Liquid Glass, a component pack with 6 components: Glass that refracts, pours and ripples. Price: $2 for the whole pack.
Built with: WebGL refraction, chromatic edges, CSS fallback.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | ||
text | string | ||
width | number | 520 × 340 | Scene size in CSS px. Default 520 × 340. |
height | number | ||
cardWidth | number | 300 × 180 | Card size in CSS px. Default 300 × 180. |
cardHeight | number | ||
autoplay | boolean | Showcase mode: the card drifts by itself until the pointer arrives. |
destroy(): voidimport RefractCard from './RefractCard';
<RefractCard />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Glassmorphism UI.