Last active
February 21, 2017 17:15
-
-
Save AntMooreWebDev/4630230aab858e5cd0b222670747bca2 to your computer and use it in GitHub Desktop.
Fades the visibility of a given element. Used to fade element on and off screen whilst maintaining element position and spacing.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fade In | |
$(myElem).css({opacity: 0.0, visibility: "visible"}).animate({opacity: 1.0}); | |
// Fade Out | |
$(myElem).css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0.0}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment