<div class="hero--diagonal">
  <div class="hero__content">
    <h1>Diagonal Containers in CSS</h1>
  </div>
</div>
body {
  padding: 5.25rem 0;
}
.hero--diagonal {
  position: relative;
  background-color: transparent;
  min-height: 50vh;
  padding: 1vh 0;
  display: flex;
  align-items: center;
  justify-content: center;

  &::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: calc(100% + 100px);
    clip-path: polygon(0% 0%, 100% 50px, 100% 100%, 0% calc(100% - 50px));
    background-color: #eee;
    background-image: linear-gradient(to right, #f36, #fde),url('https://codyhouse.co/app/assets/img/hero-diagonal/img.jpg'), url('https://alca.sfo2.cdn.digitaloceanspaces.com/uploads/codepen/2019/04/20/8829de75-5e07-4268-8049-f55afb72e301.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-blend-mode: multiply, exclusion;
    filter: brightness(1.2);
  }

  .hero__content {
    position: relative;
    z-index: 1;
  }
}

h1 {
  color: #fff;
  font-size: 3vw;
  text-shadow: 1px 1px 1px rgba(#000, .25);
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.