1.0.3 • Published 7 years ago

soften v1.0.3

Weekly downloads
4
License
apache-2.0
Repository
github
Last release
7 years ago

🌫 Soften

For all one of your blurry image needs. Demo

Blur Effect

Install

yarn add soften

Use

const soften = require('soften')

soften({ filePath: 'path to image' })
  .then(data => /* do stuff with data */)
  .catch(e => console.error(e))

If using with Gatsby Image

<Img
  placeholderStyle={{ filter: 'blur(20px)' }}
  imgStyle={{ transition: 'opacity .3s' }}
  fluid={{
    ...data // data from soften()
    src: 'url to real image'
  }}
  critical={true}
/>
1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago