is it possible to animate several objects in the animate callback function at once?
Hello,
I have the following problem, I have a toggle animation which puts the area I want to show to the user in view, ones that animation has played I want to animate several other objects on the page. I have the code to animate one object by using the callback function in animate. But is it possible to animate several objects in the callback function?. I have read posts on the internet saying this is possible and it will not cause any problems as far as I can understand them, but they fail to mention in a clear way how to do it.
this is the code I have so far
$(document).ready(function(){
$(".navigaat").toggle(function(){
$(".mover").animate({left: '0px' }, 'slow',"", function() { $(".blok").animate( { fontSize:"160px" } , 1000 )});
},function(){
$(".mover").animate({left: '-640px' }, 'slow',"", function() { $(".blok").animate( { fontSize: "24px" } , 1000 )});
});
});
I also should mention that I am very new to jquery, I am specifically looking for the correct syntax because most of the time that's the problem with getting something to work. or maybe there is a better way to do this that would be good too.
Thank you for your help