GlassmorphismPremium

Layered Glass

Three glass plates offset like stairs, with a blur that grows from one plate to the next — 8, 16 then 28 px: each one blurs what is behind it further, earlier plates included, and depth reads without perspective or script. Pure CSS, over four orbs drifting on a 7 s loop.

CSSDepthLayers

Updated

This effect is part of Effect.Labs — 846 vanilla effects, some free, some premium. Glassmorphism has 47 effects, including 6 free. Explore the category →

3 usage examples

Layers of a restoration varnish — painting restoration workshop website — Layered Glass example 1

① Layers of a restoration varnish — painting restoration workshop website

WhenThe "Our method" page: over the photo of a painting being cleaned, three plates for the paint layer, the yellowed original varnish and the reversible retouching varnish.
WhyThe blur growing from one plate to the next says "laid on top" without a diagram; it is static, script-free, and the painting stays recognizable behind the three layers — the still-yellowed half on the left, the cleaned portrait on the right.
SettingsPainting drawn in CSS (background, portrait, yellow veil over the uncleaned part, cleaning line, a swab rubbing); scene stretched over the whole frame; plates enlarged (250 × 200, 240 × 190, 240 × 190 px) and staircase widened to 70 × 48 px so each title stays readable; original 8 / 16 / 28 px blurs; plates tinted brown, 16 to 30%; amber, red, petrol and pale yellow orbs.
Sketch, preliminary design, final design — architecture firm portfolio — Layered Glass example 2

② Sketch, preliminary design, final design — architecture firm portfolio

WhenA media library project page: the three stages of the plan stacked, the latest in front.
WhyEach version blurs the previous one without erasing it: you can see the project was built in layers — the loose lines of the sketch, then the four volumes, then the colored as-built plan, the only sharp one in front.
SettingsSite plan painted at the back (grid, blocks, park, river) under the orbs; plates enlarged and staircase at 70 × 48 px; in each plate, a year, a title and the stage's drawing (lines, partitions, colored zones); original 4, 6 and 8% white; orange, cyan, lime and pink orbs.
The three layers of a mountain jacket — outdoor brand product page — Layered Glass example 3

③ The three layers of a mountain jacket — outdoor brand product page

WhenA spec sheet: base layer, insulation, membrane, each on a plate, over the photo of a snowy ridge.
WhyThe offset stack literally reproduces the three-layer system; the growing blur conveys protection adding up — the outer plate, the blurriest, is also the one that stops rain and wind.
SettingsSnowy ridge painted in CSS with falling snow; plates enlarged and staircase at 70 × 48 px; plates tinted navy from 20 to 34% because the snow is light; warmth, rain and wind gauges as bars; orange, blue, fir-green and red orbs.

How it works

A 320 × 240 px .layered-glass-scene. At the back, .layered-glass-bg holds four orbs blurred at 30 px — pink #ec4899 (100 px), violet #8b5cf6 (80 px), cyan #06b6d4 (90 px), orange #f97316 (70 px) — animated by layeredOrb over 7 s with staggered starts (0, −2, −4, −1 s): each traces a small 10 to 15 px circuit. On top, three position: absolute plates, each slightly smaller, further forward and more opaque than the last: back 220 × 160 px at (30, 20), 4% white, blur(8px); middle 200 × 140 px at (55, 45), 6% white, blur(16px); front 180 × 120 px at (75, 65), 8% white, blur(28px), a 0 8px 32px shadow and a 135° highlight in ::before. z-index 1, 2, 3 set the order; borders go from 8 to 10 then 12% white. Measured in Chromium: same positions and sizes in Firefox.

The depth comes from stacking blurs. A backdrop-filter blurs everything painted behind the element — the orbs, but also the plates placed before it. The middle plate therefore blurs the back plate at 16 px, and the front plate blurs the other two at 28 px: in Chromium, only the front plate's label stays sharp, the ones underneath are just light smudges. The further forward a plate is, the further away what sits behind it looks — the eye reads it as distance, with no perspective, no drop shadow on each plate, no motion. On hover, a plate grows 3% over 0.4 s. Each plate carries a centered label (11.2 px, weight 600, 60% white) naming its blur value. No JavaScript.

Each plate carries its blur twice, backdrop-filter then -webkit-backdrop-filter with the same 8, 16 and 28 px values. Safari before version 18 only reads the prefixed form: without it, none of the three blurs would show and the staircase would lose all its depth. Nothing else to wire: no JavaScript, no dependency.

Accessibility

  • Screen reader order: the three plates are divs read in DOM order, back then middle then front — the logical order of something built in layers, which fits. Visually, however, the back plates' content is blurred and partly hidden: never put information on a back plate that exists nowhere else. In the three examples, each plate's title sits in the strip the next plate doesn't cover.
  • Contrast: 60% white labels at 11.2 px measured at 4.0:1, 4.3:1 and 4.5:1 (back, middle, front), under or right at the 4.5:1 threshold. Raise them to 85% white for real text. Over a light photo, tint the plates dark, increasingly opaque toward the front, as in the painting and jacket scenes.
  • Hover: the 3% zoom is purely decorative, with no role or link. If a plate becomes clickable (opening a layer's detail), make it a <button> or a link and repeat the zoom under :focus-visible.
  • No prefers-reduced-motion in the code: the orbs keep drifting under emulation. The motion is small and behind three blurs; @media (prefers-reduced-motion: reduce) { .layered-glass-bg span { animation: none } .layered-panel { transition: none } } freezes everything.

Browser compatibility

CSS only: three stacked backdrop-filters (with -webkit-backdrop-filter), filter: blur(), z-index, @keyframes, transition. Zero JavaScript, zero dependency. Backdrop blur: Chrome 76+, Edge 79+, Firefox 103+, Safari 9+ prefixed (prefix included in the code), unprefixed since Safari 18. Measured in Chromium 151: each plate blurs the earlier plates, only the front label stays readable. In Firefox 153 and WebKit 26.5 under Playwright, the three values are computed (blur(8px), 16px, 28px) but none is painted in their automated screenshots, even on a minimal test — the three labels show sharp on top of each other: the depth effect was only seen in Chromium. Three stacked blurs cost more than one: on mobile, the front plate recomputes 28 px every frame while the orbs move.

Chrome 76+✓ Full
Firefox 103+✓ Full (blur not verifiable in automated screenshots)
Safari 9+✓ Full (-webkit- prefixes on all three plates)
Edge 79+✓ Full
Mobile iOS 9+✓ Full, hover zoom on tap
Android Chrome 76+✓ Full

Without backdrop blur, the staircase becomes three white veils of 4, 6 and 8%: the plates stay distinct through their borders and the front plate's shadow, but the content underneath stays sharp and mixes together. Inside @supports not (backdrop-filter: blur(1px)), plan more opaque backgrounds (20, 35, 50%) to hide what is behind each plate.

The code

HTML structure to paste into your page (the CSS + JS come with your purchase):

index.html — structure
<div class="demo-preview">
  <div class="layered-glass-scene">
    <div class="layered-glass-bg">
      <span></span>
      <span></span>
      <span></span>
      <span></span>
    </div>
    <div class="layered-panel layered-panel--back">…</div>
    <div class="layered-panel layered-panel--mid">…</div>
    <div class="layered-panel layered-panel--front">…</div>
  </div>
</div>

One-time payment, no subscription — the code is yours forever

Customize

Options passed to the API or data-* attributes:

Option / propertyDefaultEffect
Blur progression (CSS — .layered-panel--back, --mid, --front, backdrop-filter) 8, 16, 28 px The gap is what makes depth: keep at least a doubling from one plate to the next (6 / 12 / 24). Close values (12 / 14 / 16) give three plates on the same plane. Change the three -webkit-backdrop-filters too.
Staircase (CSS — top, left, width, height of the three plates) offsets of 25 × 25 then 20 × 20 px, plates of 220, 200, 180 px With these offsets, only the front plate has room for content. For a title per plate, widen to 60–70 px horizontally and 45–50 px vertically and put the content top left (align-items: flex-start; justify-content: flex-start), as in the examples.
Plate tint (CSS — background: rgba(255,255,255,.04 / .06 / .08)) white, more opaque toward the front Keep the progression, whatever the color: over a light photo, rgba(15,40,80,.20 / .26 / .34). A back plate more opaque than the front one reverses the reading of depth.
Orbs (CSS — .layered-glass-bg span:nth-child(1) to (4), layeredOrb 7s) pink, violet, cyan, orange; 70 to 100 px; 30 px blur Over a photo, recolor them in its hues or remove them; keep at least one moving source of color behind, it is what shows that each plate blurs more.
Hover (CSS — .layered-panel:hover { transform: scale(1.03) }) +3% over 0.4 s To make a plate "come forward" on hover, add z-index: 4 to the rule: it moves in front of the others and its blur then applies to them. Remove the rule if the plates are not interactive.

FAQ

Because each plate blurs what is behind it, earlier plates included. The middle plate puts the back plate under 16 px of blur, and the front plate puts the other two under 28 px: their centered labels fall right under the next plate and become unreadable (measured in Chromium: only "blur: 28px" stays sharp). That is the point for depth, but not for content. For each plate to carry a title, widen the staircase to about 70 × 48 px and put the content top left: the strip the next plate doesn't cover stays sharp, as in the three examples.
Glass Depth Stack places three glass layers in real 3D perspective (preserve-3d) and slides them by different amounts as the pointer moves: depth comes from motion, from parallax. Layered Glass doesn't move: depth comes only from the gap between blurs (8, 16, 28 px) and the staircase offset, in static CSS. Pick Layered Glass to explain layers that add up (a method, versions, a fabric); Glass Depth Stack for a header visual that reacts to the mouse.
More than one. Each backdrop-filter rereads and blurs what is behind it on every frame where something moves — here the four orbs, continuously. The front plate, at 28 px over 180 × 120 px, is the most expensive. On a page with several such blocks, or on low-end mobile, stop the orbs (animation: none): with nothing moving behind, the browser no longer has to recompute the blurs, and the depth stays the same.