Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Native perversions in the studio! https://codepen.io/anon/pen/XxKNqg?editors=1100
With svg it will be easier, but we are not looking for easy ways, right?
UPD: gave an example with text.
.wrapper{
position: absolute;
top: 25px;
bottom: 25px;
left: 0;
right: 0;
}
.wrap{
position: relative;
max-width: 1200px;
margin: 50px auto;
&__list{
display: flex;
justify-content: space-around;
margin-bottom: 80px;
}
&__item{
position: relative;
z-index: 1;
width: 50px;
height: 50px;
background: url('https://image.flaticon.com/icons/svg/138/138932.svg');
}
&__title{
position: absolute;
left: 0;
bottom: -100%;
}
&__timeline{
position: absolute;
left: 0;
right: 0;
height: 50%;
&--first{
top: 0;
right: 0;
border-right: 2px solid lightblue;
border-radius: 0 20px 20px 0;
&::before{
content: '';
position: absolute;
top: 0;
left: 0;
right: -1px;
bottom: 0;
border-top: 2px solid lightblue;
border-radius: 0 20px 0 0;
}
&::after{
content: '';
position: absolute;
left: 100px;
right: -1px;
height: 100%;
border-bottom: 2px solid lightblue;
border-radius: 0 0 20px 0;
}
}
&--second{
bottom: 0;
left: 0;
border-left: 2px solid lightblue;
border-radius: 20px 0 0 20px ;
&::before{
content: '';
position: absolute;
left: -1px;
right: 100px;
top: 0;
height: 100%;
border-top: 2px solid lightblue;
border-radius: 20px 0 0 0;
}
&::after{
content: '';
position: absolute;
left: -1px;
right: 0;
bottom: 0;
height: 100%;
border-bottom: 2px solid lightblue;
border-radius: 0 0 0 20px;
}
}
}
}
Of course, you can do all this on SVG, but for example, I did this: codepen.io/pen
The line can be made:
- through the background, but there may be difficulties with adaptive
- using two blocks, without a background, but with rounded borders on several sides
- draw on svg
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question