Code

Halftone Overlay

Add a halftone overlay to your Webflow site via this CSS code.

Halftone Overlay preview

Add a halftone overlay to your Webflow site via this CSS code.

How to add it

  1. Add the CSS code to your pages head custom code section or an embed
  2. 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>

                    

Browse similar code snippets

Categories

Language

More from Corey Moen

Profile →

Similar code snippets

All code snippets →