Created
April 30, 2014 19:30
-
-
Save manfromanotherland/0893e966b4c8ac30b2d0 to your computer and use it in GitHub Desktop.
CSS: Magnific Popup fade in/out effect #snippet
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
.mfp-fade.mfp-bg { | |
opacity: 0; | |
background: #00; | |
transition: all .3s; | |
} | |
.mfp-fade.mfp-bg.mfp-ready { opacity: .9; } | |
.mfp-fade.mfp-bg.mfp-removing { opacity: 0; } | |
.mfp-fade.mfp-wrap .mfp-content { | |
opacity: 0; | |
transition: all .3s; | |
} | |
.mfp-fade.mfp-wrap.mfp-ready .mfp-content { opacity: 1; } | |
.mfp-fade.mfp-wrap.mfp-removing .mfp-content { opacity: 0; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment