Skip to content

Instantly share code, notes, and snippets.

@kapowaz
Created February 25, 2010 18:16
Show Gist options
  • Select an option

  • Save kapowaz/314844 to your computer and use it in GitHub Desktop.

Select an option

Save kapowaz/314844 to your computer and use it in GitHub Desktop.
$('div.notification.static a.iconbutton.close').click(function(){
$(this).blur();
notification = $(this).parent('div.notification');
ghost = $('<div class="ghost"></div>').css({
width: Math.round($(notification).width()),
height: Math.round($(notification).height()),
marginBottom: '10px'});
$(notification).fadeOut('fast',function(){
$(notification).after(ghost);
$(notification).remove();
$(ghost).slideUp('fast');
});
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment