Is there a way to create two connected arrows in CSS, similar to the example shown in this JSFiddle?
.firstArrow {
position: relative;
background: rgb(0, 82, 48);
text-align: center;
margin-right: 20px;
margin-left: 0px;
height: 50px;
float: left;
width: 330px;
}
.firstArrow:before {
content: '';
position: absolute;
width: 20px;
height: 50%;
left: 100%;
top: 0;
background: linear-gradient(
to right top,
rgb(0, 82, 48) 50%,
transparent 50%
);
}
.firstArrow:after {
content: '';
position: absolute;
width: 20px;
height: 50%;
left: 100%;
bottom: 0;
background: linear-gradient(
to right bottom,
rgb(0, 82, 48) 50%,
transparent 50%
);
}
.secondArrow {
position: relative;
background: rgb(0, 82, 48);
margin-right: 10px;
float: left;
height: 50px;
width: 330px;
}
.secondArrow:before {
content: '';
position: absolute;
width: 20px;
height: 50%;
left: 100%;
top: 0;
background: linear-gradient(
to right top,
rgb(0, 82, 48) 50%,
transparent 50%
);
}
.secondArrow:after {
content: '';
position: absolute;
width: 20px;
height: 50%;
left: 100%;
bottom: 0;
background: linear-gradient(
to right bottom,
rgb(0, 82, 48) 50%,
transparent 50%
);
}
.container {
width: 700px;
margin: auto;
}
<div class="container">
<div class="firstArrow"></div>
<div class="secondArrow"></div>
</div>
How can I achieve a design where one arrow flows into the next one, like in this image?