A
A
alexeeey_kuznetsov2018-12-16 00:32:53
css
alexeeey_kuznetsov, 2018-12-16 00:32:53

How to make such a connection between elements under Bootstrap?

5c157227b7a84030610395.png
How can you implement such a black strip with circles connecting 4 lines. The design was carried out under the Bootstrap 4 grid, so the implementation specifically for it is interesting. But it is most likely that in terms of implementation methods it will not make a difference, what is BS, what is without it.
I'm waiting for help. Thanks in advance for your reply!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Filippov, 2018-12-16
@alexeeey_kuznetsov

To draw this stripe, you need to use pseudo-elements and parity selectors.
::before- circles with borders
::after- lines
:nth-child(odd/even)to set the angle of the lines to
:nth-child(1,2,3,4,5, ...)generate different colors if they just always go in the same order. If they depend on the parent - currentColorif it should be random or something else - Javascript will already be needed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question