Progressive Blur Effect For React


A React component to apply a drop-in progressive (gradient) backdrop blur to your React applications. Supports both radial and linear gradients.

How to use it:

1. Install & download.

# Yarn
$ yarn add progressive-blur

2. Import the RadialBlur and/or LinearBlur components.

import { RadialBlur, LinearBlur } from "progressive-blur";

3. Add the progressive blur effect to your app.

  // The resolution of the blur.
  // The blur radius of the blur in pixels at the peak of the gradient. 
  // How much of the blur is falloff. 0 means no falloff, 100 means the entire blur is falloff.
  // The tint applied to the blur. This can be any valid CSS color. 
  tint="rgba(0, 0, 0, 0.1)"
  // You can pass any div props to the component. 
    position: "absolute",
    inset: 0,
    zIndex: -1,
  // Same props as RadialBlur, but with an additional side prop that specifies the direction of the gradient and the transform origin so it's easy to scale in the right direction.


Progressive Blur Effect For React

Add Comment