https://github.com/whackashoe/antimoderate
The progressive image loading library for great good!
https://github.com/whackashoe/antimoderate
Last synced: 10 months ago
JSON representation
The progressive image loading library for great good!
- Host: GitHub
- URL: https://github.com/whackashoe/antimoderate
- Owner: whackashoe
- Created: 2015-10-14T06:18:13.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-12T15:54:30.000Z (about 8 years ago)
- Last Synced: 2025-05-09T09:08:17.990Z (10 months ago)
- Language: JavaScript
- Size: 505 KB
- Stars: 1,501
- Watchers: 56
- Forks: 107
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
- awesome-frontend - antimoderate - 图片模糊库
- awesome-frontend - antimoderate - 图片模糊库
- awesome-front-end - antimoderate - 图片模糊库
- awesome-frontend - AntiModerate
README
AntiModerate
===
The progressive image loading library for great good!
---
Reduce loading time of page to less than a second on slow connections by loading and rendering nicely blurred micro images on the page while loading full sized images in background which replace as they finish.
Has a nice blur effect thanks to [StackBlur](https://github.com/flozz/StackBlur/) so you have a good looking page while it is loading.
Library is space optimized, with gzip it is less than 2kb.

##Installation
You can install this using `bower` or `npm`:
```
bower install antimoderate
```
```
npm install antimoderate --save
```
##Example
```html
```
```html
var img = document.getElementById('picture');
AntiModerate.process(img, img.getAttribute("data-antimoderate-idata"));
```
##License
###AntiModerate
~~~
Copyright (c) 2016 Jett LaRue
Do whatever with it.
~~~
###StackBlur Algorithm
~~~
Copyright (c) 2010 Mario Klingemann
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
~~~