Use blurify to blur images
masterYou can blur images using either the constructor pattern or a shorthand function call. The library supports three modes: css (default, uses CSS filters), canvas (uses canvas export base64), and auto (attempts css first, then falls back to canvas).
import blurify from 'blurify';
// Using the constructor pattern
new blurify({
images: document.querySelectorAll('.blurify'),
blur: 6,
mode: 'css',
});
// Using the shorthand pattern
blurify(6, document.querySelectorAll('.blurify'));