A Pen by Steven Hagen on CodePen.
Created
February 22, 2023 04:51
-
-
Save sdhagen/198540cead431b822b07cff5adb41fb3 to your computer and use it in GitHub Desktop.
Glass blur tiles
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 class="viewport"> | |
<h1>Pure CSS Backround blur tiles</h1> | |
<div class="tiles"> | |
<div></div> | |
<div></div> | |
<div></div> | |
<div></div> | |
</div> | |
</div> |
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
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap'); | |
body{ | |
font-family: 'Rubik', sans-serif; | |
padding:48px; | |
background-image: url("https://images.pexels.com/photos/4856367/pexels-photo-4856367.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260"); | |
background-attachment: fixed; | |
} | |
h1{ | |
margin: 16px 8px 16px 8px; | |
font-size:36px; | |
color:#fff; | |
} | |
.viewport{ | |
display:block; | |
margin: auto; | |
width:414px; | |
padding: 16px 8px 16px 8px; | |
text-align:center; | |
background-color: rgba(225,225,225,0.2); | |
box-shadow: 0px 24px 24px rgba(0,0,0,0.4); | |
border: 1px solid rgba(225,225,225,0.1); | |
border-radius:16px; | |
} | |
.tiles div{ | |
display:inline-block; | |
margin:8px; | |
width: 175px; | |
height:140px; | |
background-color: rgba(225,225,225,0.2); | |
box-shadow: 0px 16px 24px rgba(0,0,0,0.3); | |
border: 1px solid rgba(225,225,225,0.1); | |
border-radius:16px; | |
backdrop-filter: blur(10px); | |
} | |
Resources1× 0.5× 0.25×Rerun |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment