I'm attempting to create a slanted path line that resembles this particular image.
The method I am currently using involves two trapezoid shapes, positioning one on top of the other to blend in with the background, as demonstrated in this jsFiddle example.
However, I now realize that I want the remainder of the shape to be see-through rather than overlapping with other elements.
The structure is primarily CSS based, with an outlineMaker div nested within a rightTrapezoid div.
.rightTrapezoid {
border-bottom: 100px solid red;
border-left: 0 solid transparent;
border-right: 50px solid transparent;
height: 0;
width: 100px;
}
.outlineMaker {
border-bottom: 80px solid white;
border-left: 0 solid transparent;
border-right: 40px solid transparent;
height: 20px;
width: 80px;
}
Is there a concise and elegant way to achieve this effect?