Skip to content

Instantly share code, notes, and snippets.

@johannesnagl
Created October 11, 2012 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johannesnagl/3872074 to your computer and use it in GitHub Desktop.
Save johannesnagl/3872074 to your computer and use it in GitHub Desktop.
the magic hat trick...
$(document).on("click", ".magic-hat", function() {
var $this = $(this), $bunny = $($this.attr("data-bunny"));
$this.slideUp(500, function() {
$bunny.slideDown(500);
$this.remove();
});
return false;
});
@catearcher
Copy link

Man muss dazusagen, dass das Bunny vorher display: none; haben muss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment