I am searching for solution to my idea of showing images on website after they are loaded. When they are not loaded I want to hide them but leave a free space in the places they should be placed.
I need to show up images when they are loaded, because now they are loading in bad-looking way.
I tried with something like this:
$(document).ready(function(){
$('img').css('opacity' , '0');
});
$('img').load(function(){
$(this).css('opacity', '1');
});
Css provides animation of opacity by:
img{
transitions: all 2s;
}
I was searching for other solutions but I did't find nothing interesting, thanks for all for your help.