I have a problem with my webpage. I have 4 div\'s which should all fade in after the one before fades out. The code I use is:
$(\'.btn\').click(function(){
$
jQuery official documentation says, that second param is not a callback, but easing style.
http://api.jquery.com/fadeIn/#fadeIn-duration-easing-complete http://api.jquery.com/fadeOut/#fadeOut-duration-easing-complete
$('#el').fadeOut(750,'swing',function(){
$('#el').fadeIn();
});
So just move your callback to 3rd param and everything will work.