Skip to content

Instantly share code, notes, and snippets.

@julzmon
Created January 14, 2015 14:23
Show Gist options
  • Select an option

  • Save julzmon/0c61ed1a099cddca62ee to your computer and use it in GitHub Desktop.

Select an option

Save julzmon/0c61ed1a099cddca62ee to your computer and use it in GitHub Desktop.
.body-overlay{
position: relative;
z-index: 99;
height: 100%;
transition: opacity 0.5s;
}
.body-overlay::after{
position: absolute;
top: 0;
right: 0;
width: 0;
height: 0;
background: rgba(0, 0, 0, 0.3);
content: '';
opacity: 0;
transition: opacity 1s;
}
.canvas-slid, .canvas-sliding{
.body-overlay::after {
width: 100%;
height: 100%;
opacity: 1;
transition: opacity 0.5s;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment