How to both fade and slide jQuery animation

jquery, jquery-ui

Solution

This is what I have ended up doing:

function () {
$("#presentState").show("slide", { duration: 1500, easing: 'easeOutBack', direction: directionActive }).hide(); 
$("#presentState").fadeIn(1500).dequeue(); 
}

I had to use `.hide();` at the end of the first function call.

Problem

I have this written, but the animations are colliding. How to changes this to work correctly? ``` function () { $("#presentState").show("slide", { duration: 1500, easing: 'easeOutBack', direction: directionActive }); $("#presentState").fadeIn( 1500, 'easeOutBack'); } ``` I also have tried this and it doesn't work at all. ``` $("#presentState").show("slide", { duration: 1500, easing: 'easeOutBack', direction: directionActive }).fadeIn(1500, 'easeOutBack').dequeue(); ```

Original source