Jump to content

jQuery fade & slide


rofl90

Recommended Posts

the fade out won't invoke the slide upwards:

 

part of the object:

 

	deleteThis:function(id) {
	$.ajax({
		type: "GET",
		url: "statsAjax.php",
		data: "delAction=" + id,
		success: function(msg){
			if(msg == "done") {
				$("#starBar-"+id).animate({'background-color':"green"}, 2000).fadeOut("slow");
			}
			else {
				$("#starBar-"+id).animate({'background-color':"green"}, 2000).animate({'background-color':"none"});
			}
		}
	});
}

Link to comment
https://forums.phpfreaks.com/topic/115107-jquery-fade-slide/#findComment-591947
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.