views:

328

answers:

1

Hello,

First of all, I am not that much experienced with JQuery, i have seen slideUp and slideDown, what about are the functions/ways for sliding to left and right?

Thanks

+3  A: 

You can do this with the additional effects in jQuery UI: See here for details

Quick example:

$(this).hide("slide", { direction: "left" }, 1000);
$(this).show("slide", { direction: "left" }, 1000);
Nick Craver
This seems to be dependent on **Effects Core**, isn't there way to achieve this without any external stuff?
Sarfraz
@Sarfraz - Not that I know of, then you're reinventing the wheel anyway...one note that may be helpful, keep the direction the same for hide/show, it's the direction it comes from or goes to...it's somewhat counter-intuitive that it's the same, but you get used to it.
Nick Craver
@Sarfraz - You can try and pull the pieces you need if you want, lots of effort though, start here if you're going down that route: http://code.google.com/p/jquery-ui/source/browse/branches/dev/effects/ui/effects.slide.js?r=2454
Nick Craver
@Nick Craver: +1 thanks for that, in the mean time, i wait for other possibilities. Thanks again :)
Sarfraz