Projects
View on GitHub
hey-lee/blurify
About
blurify.js is a tiny (~2 KB) library for blurring pictures, with graceful fallback from `css` mode to `canvas` mode.
Web & App DevelopmentMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalblurify
blurify.js is a tiny(~2kb) library to blur pictures, with graceful downgrade support from css mode to canvas mode.
Installation
$ npm i blurify
DEMO
Usage
blurify(options)
blurify the images with given options:
images{ Element }, blurify target elements.blur{ Int }, extent of blur, defaulting to6.mode{ String }, mode of blurify.css: usefilterproperty.(default)canvas: usecanvasexport base64.auto: usecssmode firstly, otherwise switch tocanvasmode by automatically.
import blurify from 'blurify';
new blurify({
images: document.querySelectorAll('.blurify'),
blur: 6,
mode: 'css',
});
// or in shorthand
blurify(6, document.querySelectorAll('.blurify'));
License
Licensed under the MIT License
Explore related projects
Loading…