jquery .slideToggle() horizontal alternative?
slideToggle does exactly what I want, only I want the slide to be horizontal. I now have an horizontalhide/show and animation on click, but I would like to have the toggle options. So that when I click on the active link, it will play the animation reversed and hide itself. What would be the best way to do this? You can use the animate method: $('#element').animate({width: 'toggle'}); http://jsfiddle.net/7ZBQa/ Created a fiddle http://jsfiddle.net/powtac/RqWk2/ $("div").animate({width: 'toggle'}); There is another way, to use jquery ui. See api jquery ui but it may not be always useful as it