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.
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



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.
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):
<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 / property | Default | Effect |
|---|---|---|
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
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.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.