I've got a problem executing functions sequentially. On my html file I've got this:
<body onload="start();">
<div id="title"><div id="welcome">WELCOME</div></div>
Inside my JS I've got this, which should execute the background change to black, and when that ended it would make the "welcome" div appear.
function start(){
$('body').css('background', 'black', function() {
$('#welcome').fadeIn("slow");
});
}
Problem is: Only the background change is being executed. I get no errors on the browser console.
Any ideas on where I might have gone wrong?
EDIT: I've got this on the body css so that it slowly changes from white to black
-webkit-transition:all 1.0s ease;
-moz-transition:all 1.0s ease;
transition:all 1.0s ease;
.css? I don't see it anywhere in the documentation.