프로젝트
GitHub에서 보기
43081j/pixelate.js
소개
jQuery plugin to pixelate images and, optionally, reveal on hover
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalpixelate.js
pixelate.js is a simple library and jQuery plugin to pixelate any set of images and optionally reveal them on hover.
Usage
pixelate.js can be used with jQuery:
$('img').pixelate();
Or without via HTML data attributes:
<img src="test.jpg" width="200" height="200" data-pixelate>
Options
valueThe percentage of pixelation to perform, a value between0and1revealReveal the image on hover and remain revealed if clickedrevealonclickReveal the image on click. When combined withreveal, it will remain revealed after being clicked.
These options may be specified by data tags, like so:
<img src="img.jpg" data-pixelate data-value="0.5" data-reveal="false">
or by jQuery/JavaScript:
$('img#myimage').pixelate({ value: 0.5, reveal: false });
License
MIT
관련 프로젝트 살펴보기
불러오는 중…