Show an element for x seconds then fade out


/ Published in: jQuery
Save to your folder(s)

Shows the given element and fades it out after a given period


Copy this code and paste it in your HTML
  1. // Fade out after 3000ms. Fade over 1000ms
  2. $("#myElementId").show().animate({opacity: 1.0}, 3000).fadeOut(1000);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.