Last active
April 9, 2018 22:13
-
-
Save dbismut/9b7f04fbe0071377ae5a754a8869ba65 to your computer and use it in GitHub Desktop.
Part 3 - Styling the underlay so it gets a blur
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
.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