Do you realize that you can do this now? There's already a .animate() function, you don't need any of the 1.2 functionality for that.
SlideDown: .animate({ height: 'show' }); SlideUp: .animate({ height: 'hide }); SlideRight: .animate({ width: 'show' }); SlideLeft: .animate({ width: 'hide' }); --John On 7/4/07, Jon Ege Ronnenberg <[EMAIL PROTECTED]> wrote:
Hi all! I like jQuery a lot and have used it in couple projects now. But one thing I really don't get is the "slideUp" and "slideDown" functions. Why can't I decide which way the animation goes?? I really think they (the functions) should be more generic. While browsing the road map for jQuery 1.2 I saw the Relative Animations section which is exactly what I want. It would be obvious if slideUp/slideDown uses this new method but wouldn't be nice if there where a shorthand to achieve this? I propose slideUp/slideDown(string /number, string direction); where direction can be "up", "right", "down" or "left". For now I'll settle with animate and some CSS mumbo jumbo. Anyway, thanks for your time - you took to read this :-)