Skip to content

Instantly share code, notes, and snippets.

@dbismut
Last active April 9, 2018 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbismut/9b7f04fbe0071377ae5a754a8869ba65 to your computer and use it in GitHub Desktop.
Save dbismut/9b7f04fbe0071377ae5a754a8869ba65 to your computer and use it in GitHub Desktop.
Part 3 - Styling the underlay so it gets a blur
.page-post .underlay {
position: fixed;
top: -10vh;
left: 0;
z-index: 0;
width: 100vw;
height: 120vh;
background-color: #fff;
transition: opacity 400ms ease;
&::before {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
content: '';
}
}
.page-post.post-dragged .underlay {
background-color: transparent;
backdrop-filter: blur(20px);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment