C
C
cherepaha19902015-04-05 14:34:55
Animation
cherepaha1990, 2015-04-05 14:34:55

Why do adjacent elements move during animation?

Hello. Please tell me why when using the hover pseudo-class and the animate method, neighboring elements move. Let me explain in more detail: In the vertical block there are pictures under each other, when you hover over the picture, the picture increases, but at the same time it shifts all the pictures that are located below. And I would like the active picture to increase and overlap the neighbors. Help plz.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Petrov, 2015-04-05
@Petroveg

Do you happen to change the size of the block or the picture? If so, then you need to apply transform: scale() .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question