Skip to content

Instantly share code, notes, and snippets.

@manfromanotherland
Created April 30, 2014 19:30
Show Gist options
  • Save manfromanotherland/0893e966b4c8ac30b2d0 to your computer and use it in GitHub Desktop.
Save manfromanotherland/0893e966b4c8ac30b2d0 to your computer and use it in GitHub Desktop.
CSS: Magnific Popup fade in/out effect #snippet
.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