I am trying to achieve a smooth effect where, while one image is sliding out, another slides in. This animation needs to be in a way that while one thing is sliding out the other one is sliding in such that they both take up space inside the div at the same time.
I created a simple jsFiddle, describing the problem that he faced.
$("#googleLogo").hide("slide", {
direction: "right"
}, 500 );
$("#yahooLogo").show("slide", {
direction: "left"
}, 500 );
I am basically sliding one thing out just before I start sliding the other one in. I think I am making a silly mistake somewhere.
That depends on your markup and style structure:
CSS:
CHECKOUT FIDDLE, might be you want something like this.