Search code examples
jqueryshowdirection

jquery .show('slow') direction?


Is it possible to change direction of $("selector").show('slow') and hide('slow') effects in jQuery?

I can define directions for other effects such as slide and clip, but there's no option for show or hide('slow')


Solution

  • show() is just an arbitrary function to display an element on a page. Without the argument it wouldn't even have an animation. If you want access to more elaborate animations and control the direction it fades in on you will need to use .animate()

    Or use an extra library that extends jQuery's native functions like jQuery UI

    show() on itself doesn't have any extra effects though..