Skip to content
PixiKit

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
NameTypeDefaultDescription
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.
heightstring | number"6rem"How far the blur reaches in from the edge; its width for left and right. Numbers are pixels.
widthstring | numberNoneFor top and bottom, a narrower centred band; for left and right, overrides height.
strengthnumber2How blurry the very edge gets; each step adds about 12px of blur.
layersnumber8Blur 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.
exponentialbooleantrueDoubles the blur toward the edge so it starts gently; turn off for an even ramp.
opacitynumber1Opacity of the blur layers; lower values let the sharp content show through.
saturationnumber1Colour boost of the blurred content, building toward the edge, for a glassy look.
tintstring"transparent"The colour the content fades into at the edge, such as the page background.
autoHidebooleanfalseFades the blur out when the scroll container reaches this edge.
containerstring | HTMLElement | RefObject<HTMLElement | null>NoneThe scroll container autoHide watches; a scrollable sibling or the parent when not set, or the page when target is page.
hoverIntensitynumber1Multiplies the blur while the pointer is over it; 0 clears it on hover, 2 doubles it.
durationnumber | string0.3Length of the hover and autoHide transitions, in seconds or as a CSS time.
easingstring"ease-out"CSS easing of those transitions.
zIndexnumber1000Stacking order of the overlay.
classNamestringNone
styleCSSPropertiesNone

More interaction effects in Pro

View all

Related