can anyone lend a hand please
i want to chain animations so that it all happens together at once, not in a series
Code:$("#swipeMask").animate({"top": "0px"}, 500).animate({ backgroundColor: '#ffffff' }, 200);
can anyone lend a hand please
i want to chain animations so that it all happens together at once, not in a series
Code:$("#swipeMask").animate({"top": "0px"}, 500).animate({ backgroundColor: '#ffffff' }, 200);
Last edited by ggalan; 12-28-2010 at 07:18 PM.
I don't think you can animate background colour (at least not with the standard jQuery - think there's a plugin for it).
Anyway, to do multiple animations at the same time, do it like this:
Code:$("#swipeMask").animate({ "top": "0px", "left" : '20px' // Add any more properties you want to animate here }, 500);
ggalan (12-28-2010)
the backgroundColor worked!
Code:$("#swipeMask").animate({"top": "0px", backgroundColor: '#ffffff'}, 700);
Bookmarks