Jquery show preloader for every image?
- by mathiregister
Hey guys,
I've a website with a lot of images:
<img class='thumb' src=thumbs/image1.jpg/>
<img class='thumb' src=thumbs/image2.jpg/>
<img class='thumb' src=thumbs/image3.jpg/>
<img class='thumb' src=thumbs/image4.jpg/>
I wonder if I can display a loading-div for every single image and when it's loaded the div hides? I'm using jquery for most of my animations. Can i solve that with jquery.
It would be cool if every image shows this loading-div centered in the middle of the image. When the image is loaded the div should hide!
Is that possible? Thank you for your help!