Reputation: 1223
Right now I have:
$('#title').animate({fontSize:'20px'},200).animate({marginLeft:'0'},200);
Which reduces the font size and then moves left. Is there a way to execute these animations simultaneously - as in, the title starts moving left and on the way the font size get smaller?
Upvotes: 0
Views: 53
Reputation: 1223
Nevermind...
function shrinktitle() {
$("#title").animate({
fontSize:'20px',
marginLeft:'0'
}, { duration: 200, queue: false });
}
Upvotes: 1