fade in and out with duration jquery code example Example: jquery fade out $(selector).fadeOut(duration) $(selector).fadeIn(duration)