Can I call 2 functions at the same time with jQuery?
For example:
I am trying to perform something like http://www.wunderkit.com/. If you notice, when the sofa fade's In, it animates down at the same second. When it moves at the very end bottom it comes up for around 3-4 pixels.
Currently I have:
$(".logo").fadeIn().animate({ marginTop: 20 }, 'fast', function() {
$(this).animate({ marginTop: -5 }, '');
});
This fade's In the logo, waits 1-2 seconds and then the animation begins.
Is there any other way I can call this?
Thanks alot