I'm trying to insert a curve in the middle of a div, so i can achieve this result:
This is what i did so far.
.back{
background-color: grey;
width: 100%;
height: 200px;
display: inline-grid;
align-items: center;
overflow: hidden;
}
.line{
height: 3px;
background: linear-gradient(to right, yellow, purple, blue, green, red, orange);
transform: rotate(-10deg);
}
<div class="back">
<div class="line"></div>
</div>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…