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

faressoft picture faressoft · Dec 22, 2010 · Viewed 116.6k times · Source

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

Answer

Felix Kling picture Felix Kling · Dec 22, 2010

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