项目
在 GitHub 查看
zafree/pilpil
关于
Pilpil - Progressive Image Loading
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Pilpil - Progressive Image Loading
Pilpil is a tiny, pure JavaScript library for Progressive Image Loading with a blur effect to reduce the page load time; as seen on Medium.
Demo
https://zafree.github.io/pilpil
How
- Link files to your site or application (add
<script>to bottom of page)
<link rel="stylesheet" href="pilpil.css" />
<script src="pilpil.js"></script>
- Set markup
<div
class="image"
data-width="original_width"
data-height="original_height"
data-small="small_image_path"
data-large="original_image_path"
data-alt="image_alt">
</div>
Why
It's the best way to load an image. No dependencies. Pure JavaScript. Progressive Image Loading with a blur effect. Reduce the page loading time. Better user experience. Wow.
Where
Pilpil should (in theory) work in all relevant browsers (ie9+). If not, create an issue! Thanks!
Who
Written by Zafree, made better by you.
探索相关项目
加载中…