Horizontal slide animation using jQuery 1.7.2.?
问题 Can anyone suggest a way to implement a horizontal slide animation using the jQuery 1.7.2 library with out the jQueryUI library. So far with this set up I've managed to implement a vertical slide using $('#selectorId').fadeIn(1000); And a fade in using: $('#selectorId').slideToggle('slow'); Also please not I have ruled out using CSS for the transition because as far as I can tell you can't do a call back function that way. 回答1: You can use jQuery's animate function: fiddle $('#toggle').click(