프로젝트
GitHub에서 보기
hey-lee/blurify
소개
blurify.js는 이미지를 흐리게 처리하는 작은(약 2KB) 라이브러리이며, `css` 모드에서 `canvas` 모드로 자연스럽게 대체할 수 있습니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
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
관련 프로젝트 살펴보기
불러오는 중…