Search code examples
javascriptjqueryhidedelayshow

How can I use delay() with show() and hide() in Jquery


How can I use delay() with show() and hide() in Jquery ?


Solution

  • Pass a duration to show() and hide():

    When a duration is provided, .show() becomes an animation method.

    E.g. element.delay(1000).show(0)

    DEMO