$("#p1").css("color", "red").slideUp(2000).slideDown(2000);
// seperate with comma $('.first, .second')