I have a page with a side menu, and the contents of this menu is opened inside an iframe.
CSS
#preloader {
position: absolute;
left: 0px;
right: 0px;
bottom: 0px;
top: 0px;
background: #ccc;
z-index: 9999;
}
ALBUM.PHP
<body>
<div id="preloader"><img src="images/loading_azul.gif"></div>
<div id="conteudo">
...
JS
$(document).ready(function(){
//Esconde preloader
$(window).load(function(){
$('#preloader').fadeOut(1500); //1500 é a duração do efeito (1.5 seg)
});
});
The problem is that just at the end of this upload, it shows the animation of the gif on the screen, just before it is hidden.
Can anyone tell me why?