I can get the desired result using the following linear gradient :
linear-gradient( 6deg, transparent 73%, rgba(50, 87, 106, 0.72) 27%);
You can easily control the form.
first parameter or linear-gradient( 6deg... controls the degree of skew . You can also use negative values
percentages after each of the colors controls the location of the dividing line.
If the numbers do not match 100% , the separator will be blurred.
I added an image background-blend-mode:overlay; and background-blend-mode:overlay; in the example below for demonstration purposes.
body { text-align: center; } .test { height: 400px; width: 500px; margin: 0 auto; display: inline-block; background: url(https://unsplash.it/500/400), linear-gradient( 6deg, transparent 73%, rgba(50, 87, 106, 0.72) 27%); background-blend-mode:overlay; }
<div class="test"></div>
source share