Liquid glass card
A translucent card with a saturated blur whose sharper edge refracts the colourful shapes drifting behind it, with an opaque fallback when transparency is reduced.
- Tailwind
- React
- CSS
- WordPress
Description
Inspired by the liquid glass of recent interfaces, the card stacks two layers of glass: a heavily blurred, saturated pane that lets the colour of the moving shapes through, and a barely blurred, brighter edge ring that bends them like the thickness of a window. A highlight slides along that ring only, never over the text. Sample content: a glassblowing workshop, with a heading, a paragraph, three key facts and a booking link. Contrast measured in the worst case, on the least favourable background colour and ignoring the blur: 5.8:1 in light and 5.0:1 in dark mode for body text, over 7:1 for the heading. With prefers-reduced-transparency, the glass turns into an opaque outlined card with no blur or ring; the same fallback applies without backdrop-filter support and in forced colours. Performance cost: pure CSS, no script or image; the shapes and the highlight animate with transform on the compositor, with no layout shift. With prefers-reduced-motion everything stops and the highlight stays in the corner. The heading and facts wrap without overflow from 320 px, even with labels 40% longer.
Code
Loading the code…
The code of this component in
Archive contents
effet-liquid-glass-carte-refraction-html-tailwind.zip3 files · 5 Ko
- index.html7 Ko
- README.md4 Ko
- LICENSE.md1 Ko
Tags
Updated on December 2, 2026.
Reviews
No reviews yet.
In the same spirit

A large heading whose words turn from grey to ink as the page scrolls, then whose key phrases get a marker stroke, in pure CSS with a readable fallback.
- Tailwind
- React
- CSS
- WordPress

Cards that fade in as they enter the screen, one after another in each row, without a line of JavaScript and with a static fallback.
- Tailwind
- React
- CSS
- WordPress

A help block shaped like a conversation: bubbles, three animated typing dots and clickable quick replies that show your answers to frequent questions, frozen under prefers-reduced-motion.
- Tailwind
- React
- CSS
- WordPress

A paragraph whose words turn from grey to full ink, one by one, as the page scrolls, in pure CSS with a plain-text fallback.
- Tailwind
- React
- CSS
- WordPress