Progressive blur
A backdrop blur that ramps up toward one edge, with no runtime.
Progressive blur
Installation
pnpm add @heyramzi/uiUsage
import { ProgressiveBlur } from "@heyramzi/ui/effects/progressive-blur";API reference
direction"top" | "right" | "bottom" | "left"- Default
"bottom" - Edge the blur builds towards. Default `bottom`.
layersnumber- Default
8 - Stacked masked layers. More layers, smoother ramp, more compositing.
intensitynumber- Default
0.25 - Blur added per layer, in px.
classstring
| Prop | Type | Default |
|---|---|---|
direction Edge the blur builds towards. Default `bottom`. | "top" | "right" | "bottom" | "left" | "bottom" |
layers Stacked masked layers. More layers, smoother ramp, more compositing. | number | 8 |
intensity Blur added per layer, in px. | number | 0.25 |
class | string |