/halftone-overlay.css Secret
Created
January 11, 2023 22:13
Star
You must be signed in to star a gist
CSS Halftone Overlay
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
.element { | |
filter: saturate(0) brightness(2) contrast(2.5) opacity(0.8); | |
-webkit-filter: saturate(0) brightness(2) contrast(2.5) opacity(0.8); | |
} | |
.element::after { | |
content: ' '; | |
display: block; | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
pointer-events: none; | |
background-size: 8px 7px, 8px 7px; | |
background-position: 0, 4px 1px; | |
background-image: radial-gradient(circle, #404040, rgba(255, 255, 255, 0) 60%), radial-gradient(circle, #404040, rgba(255, 255, 255, 0) 60%); | |
mix-blend-mode: multiply; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment