Liquid Glass · Technique Comparison

Two Implementations,
One Effect

The original open-source demo on the left; our adapted, animated, component-ready version for Densify on the right.

Original Demo

HTMLCSSSVG

Noise type

fractalNoise (static)

baseFrequency

0.008 · fixed

Displacement scale

77 px · aggressive

Button filter

Baked PNG bump map

White tint

::before bg rgba(255,255,255,.10)

Background

Animated photo (60 s CSS)

Shape target

Circle · 70 × 70 px

Integration

Standalone CSS class

Densify Implementation

ReactTailwindSVG

40min

Por treino

+4kg

Média em 3 meses

3.9k

kcal/dia

Calcular Meu Plano →

Noise type

fractalNoise (animated)

baseFrequency

0.006–0.011 · 18 s morph

Displacement scale

40 px · refined

Button filter

Same fractalNoise, no PNG

White tint

bg-white/18 on element

Background

CSS gradient orbs

Shape target

Pill · rounded-2xl / full

Integration

.densify-lg Tailwind class

Technical Breakdown

Property-by-property diff

PropertyOriginalDensify
Glass distortion noiseStatic feTurbulence · seed 92Animated feTurbulence · SVG <animate> breathes every 18 s
Displacement scale77 px — highly visible warp40 px — subtle, brand-appropriate
Button/pill filterSeparate baked PNG bump map (feImage)Same fractalNoise filter — single source of truth
Background materialExternal photo via CSS background-imageSelf-contained CSS gradient orbs (no network)
Background animationCSS @keyframes moves photo 0 → -1000%Framer Motion scroll parallax on the orbs
Shine ringinset box-shadow on ::before (z:0)inset box-shadow on ::before (z:2, above Framer Motion layers)
Reusability / DXCopy-paste .glassContainer + .glassBtn per elementAdd densify-lg class to any element — one line
Motion compatibilityNo JS animation frameworkWorks alongside Framer Motion (float + scale + hover)
Isolation / stackingisolation: isolate per elementisolation: isolate baked into .densify-lg
Browser supportChrome · Safari · Edge (Firefox partial)Same — identical CSS/SVG surface

Animated Texture

SVG <animate> on baseFrequency makes the glass slowly morph — the original demo never moves the noise, only the background.

Single CSS Class

.densify-lg encapsulates ::before, ::after, isolation, and z-index. Apply to any element in one className attribute.

Framer Motion Ready

Works with scale, rotate, y-translate, and AnimatePresence with no z-index conflicts — stacking fully resolved.

Densify · Liquid Glass Comparison← Back to Densify Landing Page