프로젝트
GitHub에서 보기
javierbyte/react-blur
소개
Canvas를 사용해 이미지 배경을 흐리게 처리하는 React 컴포넌트입니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalReact Blur
React component for creating blurred backgrounds using canvas.
Installation
pnpm add react-blur
Usage
import Blur from "react-blur";
Example
<Blur img="/directory/img.jpg" blurRadius={5} enableStyles>
The content.
</Blur>
For a complete example see the code in the demo branch.
Props
img: The image path.blurRadius: Optional. The size of the blur radius.enableStyles: Optional. Flag to include base styles inline, omit this to easily override.shouldResize: Optional. If the canvas should re-render on resize? Defaults to true.resizeInterval: Optional. How fast the canvas should re-render on resize? Defaults to 128ms.
Contributing
Thanks to Quasimodo for the original stack blur algorithm.
관련 프로젝트 살펴보기
불러오는 중…
