1.0.0 • Published 5 years ago
intersection-observer-v2 v1.0.0
lazyloading images, iframes and videos with intersection observer
Credits to https://github.com/vivek11432/Intersection-Observer-v2 for the basecode
demo here: https://thomaswt.github.io/Intersection-Observer-v2/
Examples of elements at the bottom
No jQuery required
Iframe element
<iframe data-src="https://www.w3schools.com"></iframe>
Multiple images entering the viewport
<img style="display:inline-block;" data-src="/img/myimg.jpg">
<img style="display:inline-block;" data-src="/img/myimg2.jpg">
1.0.0
5 years ago