yosbelms / react-progressive-loader

Utility to load images and React components progressively, and get code splitting for free
217 stars 12 forks source link

Allow variable amount of blur #3

Open Sorgrum opened 5 years ago

Sorgrum commented 5 years ago

Provide a prop, blurAmount, which allows the user to control how blurred the placeholder image is.

Usage: Add the blurAmount prop with the amount of desired blur.

<Img
    src={img}
    placeholderSrc={imgSmall}
    bgColor={"#f0f0f0"}
    blurAmount={"5px"}
/>