Created
July 8, 2015 08:19
-
-
Save sunpietro/98d26fbc294c38c8ef7c to your computer and use it in GitHub Desktop.
CSS - fade-in/fade-out transition
This file contains hidden or 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
.m-fadeOut { | |
visibility: hidden; | |
opacity: 0; | |
transition: visibility 0s linear 300ms, opacity 300ms; | |
} | |
.m-fadeIn { | |
visibility: visible; | |
opacity: 1; | |
transition: visibility 0s linear 0s, opacity 300ms; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Simple and beautiful!