#angled-edges { position: relative; height: torem(120px); background-color: color(orange); margin: torem(20px) 0; z-index: 1; &::before, &::after { content: ''; position: absolute; left: 0; right: 0; height: 50%; background-color: inherit; z-index: -1; } &::before { top: 0; transform-origin: 100% 0; transform: skewY(1.5deg); } &::after { bottom: 0; transform-origin: 100% 0; transform: skewY(-1.5deg); } }