I would like to know how to have a callback whenever animate
is in progress, ie starts the animation.
This is the code I tried:
$('#a').on('click', function() {
$('#b').animate({opacity: 0}, 1000, function() {
// animation complete
$('#c').animate({opacity: 0, 1000};
});
}
I don't want #c
to animate
when #b
animation is complete.
For example, I want #c
to start to animate after 0.5 seconds after #b
animation start.