Created
May 11, 2020 14:08
-
-
Save YuJianrong/fb22fa9f55bc60123f639682ed1764bd to your computer and use it in GitHub Desktop.
css backdrop-filter.blur.demo
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
<div style=" | |
position: fixed; | |
background: rgba(253, 202, 202, 0.26); | |
padding: 100px 180px; | |
z-index: 100; | |
transform: translate(-50%, -50%); | |
left: 50%; | |
top: 50%; | |
border-radius: 50px; | |
-webkit-mask-image: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(255,255,255,0) 100%),linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(255,255,255,0) 100%); | |
backdrop-filter: blur(6px); | |
-webkit-mask-composite: destination-in; | |
text-align: center; | |
">Hello Backdrop filter</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment