Blur Ramp
An edge overlay whose blur builds layer by layer toward the edge, so content melts away under a header, a tab bar or the foot of a scroll area.
pixikit.com/docs/effects/blur-ramp
Customize
Position
Target
Strength2.00
Layers8
Curve
Exponential
Opacity1.00
Saturation1.00
Tint
Auto hide
Hover intensity1.0
Duration0.30s
Z index1000
Props
19| Name | Type | Default | Description |
|---|---|---|---|
position | "top" | "bottom" | "left" | "right" | "bottom" | The edge the blur grows toward. |
target | "parent" | "page" | "parent" | Sit inside the nearest positioned parent, or stay fixed to the edge of the viewport. |
height | string | number | "6rem" | How far the blur reaches in from the edge; its width for left and right. Numbers are pixels. |
width | string | number | None | For top and bottom, a narrower centred band; for left and right, overrides height. |
strength | number | 2 | How blurry the very edge gets; each step adds about 12px of blur. |
layers | number | 8 | Blur layers stacked across the ramp; more give a smoother falloff. |
curve | "linear" | "bezier" | "ease-in" | "ease-out" | "ease-in-out" | "linear" | How the blur builds across the ramp; bezier is a smooth S-curve. |
exponential | boolean | true | Doubles the blur toward the edge so it starts gently; turn off for an even ramp. |
opacity | number | 1 | Opacity of the blur layers; lower values let the sharp content show through. |
saturation | number | 1 | Colour boost of the blurred content, building toward the edge, for a glassy look. |
tint | string | "transparent" | The colour the content fades into at the edge, such as the page background. |
autoHide | boolean | false | Fades the blur out when the scroll container reaches this edge. |
container | string | HTMLElement | RefObject<HTMLElement | null> | None | The scroll container autoHide watches; a scrollable sibling or the parent when not set, or the page when target is page. |
hoverIntensity | number | 1 | Multiplies the blur while the pointer is over it; 0 clears it on hover, 2 doubles it. |
duration | number | string | 0.3 | Length of the hover and autoHide transitions, in seconds or as a CSS time. |
easing | string | "ease-out" | CSS easing of those transitions. |
zIndex | number | 1000 | Stacking order of the overlay. |
className | string | None | |
style | CSSProperties | None |