Projekte
Auf GitHub ansehen
hey-lee/blurify
Über uns
blurify.js ist eine kleine Bibliothek (ca. 2 KB) zum Weichzeichnen von Bildern und unterstützt einen nahtlosen Fallback vom `css`- in den `canvas`-Modus.
Web- und App-EntwicklungGemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
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
Ähnliche Projekte entdecken
Wird geladen…