https://jmperezperez.com/assets/images/posts/medium-progressive-loading.mp4 https://codepen.io/jlcarvalho/pen/oMrJba?editors=1000
const observer = new IntersectionObserver(images => {
images.forEach(image => {
if (image.intersectionRatio > 0) {
}
})
} , {
rootMargin: "0px",
threshold: 0.1
});
observer.observe(document.querySelector('img');