S
S
sirenko2021-07-16 10:48:22
css
sirenko, 2021-07-16 10:48:22

What can be used to make the effect as in the photo?

60f139a4e7de5528964801.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sewaca, 2021-07-16
@sewaca

It's just that the padding is added up and down, and the container that contains all three cards has display: flex; align-items: center;
For the card, you write on hover adding padding-top padding-bottom and other colors and that's it

A
approximate solution, 2021-07-16
@approximate_solution

If you are talking about an explicit increase in the central block (for example, on hover), then:
in this case, transform: scale + z-index will help.
transform will increase the size of the active block (for example, on hover), and z-index will allow you to simulate the effect of overlapping the block on the neighboring one for the sake of beauty.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question