channg / easylazyload.js Goto Github PK
View Code? Open in Web Editor NEW超简单图片延迟加载js插件🐶🐶🐶🐶🐶🐶
超简单图片延迟加载js插件🐶🐶🐶🐶🐶🐶
这个插件要怎么在webpack 中用
ajax请求的图片没有效果唉
根据我的情况,不是监听窗口的滚动,而是监听自己的容器滚动,根据自定义滚动容器来加载图片》
现在这个只能监听窗口滚动加载图片
设置 viewport
如下 <meta name="viewport" content="width=750, user-scalable=no">
;
<html>
<div style="overflow: scroll;">
<div style="width: 500%;">
<img data-lazy-src="img/test.jpg" alt="FION樱花粉短款钱夹">
<img data-lazy-src="img/test.jpg" alt="FION樱花粉短款钱夹">
<img data-lazy-src="img/test.jpg" alt="FION樱花粉短款钱夹">
<img data-lazy-src="img/test.jpg" alt="FION樱花粉短款钱夹">
<img data-lazy-src="img/test.jpg" alt="FION樱花粉短款钱夹">
<img data-lazy-src="img/test.jpg" alt="FION樱花粉短款钱夹">
<img data-lazy-src="img/test.jpg" alt="FION樱花粉短款钱夹">
<img data-lazy-src="img/test.jpg" alt="FION樱花粉短款钱夹">
<img data-lazy-src="img/test.jpg" alt="FION樱花粉短款钱夹">
<img data-lazy-src="img/test.jpg" alt="FION樱花粉短款钱夹">
<img data-lazy-src="img/test.jpg" alt="FION樱花粉短款钱夹">
</div>
</div>
设置几个相同的区块,下拉的时候会发生屏幕抖动(放大缩小)甚至变形的效果。。
已经用上了,非常好用的啊!感谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.