gre / gl-react-blur

Universal gl-react multi-pass gaussian Blur effect with configurable intensity
38 stars 7 forks source link

gl-react-blur

Universal gl-react multi-pass gaussian Blur effect with configurable intensity.

{Blur} Props

More advanced...

{BlurV} Props

BlurV is a variant of Blur that allows to make Variable blur effect.

It accepts one more prop:

Usage Examples

var Blur = require("gl-react-blur").Blur;
// or
import { Blur } from "gl-react-blur";

Small blur on an image

<Blur factor={0.5} passes={2}>
  http://i.imgur.com/zJIxPEo.jpg
</Blur>

Medium blur on a video

<Blur factor={2} passes={4}>
  <video ... />
</Blur>

Powerful blur on another stack of effects

<Blur factor={20} passes={6}>
  <EffectA>
    <EffectB>
      ...
    </EffectB>
  </EffectA>
</Blur>

Variable Blur

<BlurV factor={3} passes={6} map="http://i.imgur.com/SzbbUvX.png">
  ...
</BlurV>