Wait for images to upload to be shown

Asked

Viewed 170 times

1

I would like to make a system that when the page is requested will show a GIF of load waiting for the images to upload as soon as they load the GIF and the images are shown. Someone knows how to do this?

  • Hmm, look, what do you say we put the loading gif as the background of the div where the image will be loaded? Theoretically when the image loads it will be over the gif. It may work...

1 answer

0

Voce can use the function load(); and fadeOut(); to make your div disappear. Sort of like this :

$(window).load(function(){
    $('#dvLoading').fadeOut(2000);
});

Well, I hope I helped. Hug

  • and then like I do it to appear when the images are loaded?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.