simultaneous fadeOut() and slideUp()
I am trying to develop a function to simultaneously fade elements out and slide them up. The following attempt doesn't work. It applies the animations sequentially. How can I fix it?
Bill
/******************************************************************************
.slideFadeOut()
******************************************************************************/
(function($) {
$.fn.slideFadeOut = function() {
this.
queue('fx2', function() {
$(this).slideUp({duration: 2000});
}).
dequeue('fx2');
this.
queue('fx3', function() {
$(this).fadeOut({duration: 2000});
}).
dequeue('fx3');
return this;
};
})(jQuery);