Skip to content

Instantly share code, notes, and snippets.

@enopanen
Created December 3, 2013 18:02
Show Gist options
  • Save enopanen/7774237 to your computer and use it in GitHub Desktop.
Save enopanen/7774237 to your computer and use it in GitHub Desktop.
Fading objects out of the document is very common with modern user interfaces. You can always have small popup boxes or notifications which need to display and then hide after a few seconds. Using the fadeToggle function you can quickly hide and display any objects in your DOM. Keep this code handy if you will ever need such functionality in a w…
$("a.register").on("click", function(e){
$("#signup").fadeToggle(750, "linear");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment