项目
在 GitHub 查看
43081j/pixelate.js
关于
jQuery plugin to pixelate images and, optionally, reveal on hover
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文pixelate.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
探索相关项目
加载中…