Halftone Overlay
Add a halftone overlay to your Webflow site via this CSS code.
Add a halftone overlay to your Webflow site via this CSS code.
How to add it
- Add the CSS code to your pages head custom code section or an embed
- Update the class names as needed
The code
CSS
<!-- Add via embed or head section -->
<style>
.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;
}
</style>