I use jquery lazyload plugin for my website. But It just lazyloads images. I want to make something like that, complete div will be lazyloaded effect. And all contents will show altogether, not just image. This features we can see on Facebook apps and desktop version. How can I do it using javascript or jquery ?
Here's my Code:
<style type="text/css">
.lazyload {
background:#f3f3f3;
padding:10px;
margin:10px;
border-radius:6px;
}
.lazyload img{border-radius:6px;}
</style>
<div class="lazyload">
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSEgT2riAqvy_1iVAA3tKeG1JkTKnBA2g4lFQ&usqp=CAU" width="100%">
<h2> A Post Title </h2>
<p> Lprem ipsum dolor. This is a simple dummy text </p>
</div>
How can I do it....?