Blurify
blurify.js is a tiny(~2kb) library to blurred pictures, support graceful downgrade from `css` mode to `canvas` mode.
Install / Use
/learn @hey-lee/BlurifyREADME
blurify
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
Related Skills
healthcheck
344.4kHost security hardening and risk-tolerance configuration for OpenClaw deployments
imsg
344.4kiMessage/SMS CLI for listing chats, history, and sending messages via Messages.app.
xurl
344.4kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
qqbot-channel
344.4kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
