Dev Helpers
← Back

Blend two overlapping shapes

Blend two overlapping shapes with native CSS. The preview includes a small shared demo stylesheet.

Open this example in the interactive library

Source code

<style>
  .demo {
    isolation: isolate;
    display: flex;
  }
  .tile {
    background: #f9a8d4;
    mix-blend-mode: multiply;
  }
  .tile + .tile {
    margin-left: -0.5rem;
    background: #7dd3fc;
  }
</style>
<div class="demo">
  <span class="tile">Pink</span><span class="tile">Blue</span>
</div>