codepenz
← Back to catalog

Glass Displacement Dock

A draggable macOS-style dock whose glass is a real SVG feImage + feDisplacementMap filter: the backdrop's red, green and blue channels are each displaced by a slightly different amount and screen-blended back together, producing a refractive colour fringe as it bends the icons and photos scrolling underneath. Switch between dock, pill, bubble and blob shapes, or reveal the displacement map that drives the distortion.

EffectsComponentscsssvg-filterbackdrop-filterdisplacement-mapchromatic-aberrationdrag
Added September 19, 2026

Drag the glass — or focus it and press the arrow keys — to slide it across the icons and photos below.

Shape

A dock made of real glass

This panel isn’t blurred, it’s refracted. The image you can reveal below feeds an SVG feDisplacementMapfilter that shifts the pixels behind the panel using that image’s red and blue channels. The shift runs through its own filter chain for each colour channel of the backdrop, at a slightly different strength per channel, and the three are screen-blended back together — the same offset-per-channel trick a real lens produces, which is why the rim shows a faint colour fringe.

backdrop-filter: url(#…) only runs in Chromium today; Firefox and Safari fall back to a plain frosted panel with no distortion.

Files
Browser
Messages
Calendar
Camera
Music
Mail
Notes