I'm doing a fadeOut of a full screen image. The problem is that when the wrapper fadeIn it's content (the image on the middle ) makes a jump of about 20px.
Any idea why is that happening?
This is my code:
// Home FadeIn
function home_timeout(){
setTimeout(function(){
$('#intro-image').fadeOut(700);
$('#wrapper').fadeIn(700);
}, 2000);
}
It happens the first time the page is loaded and not on cache.
I have already added a height to the wrapper and still it doesn't fix it:
body.home #wrapper {
display: none;
height: 777px;
}