S
S
Soft_touch_plastic2021-07-30 16:44:48
css
Soft_touch_plastic, 2021-07-30 16:44:48

How to make a block that smoothly appears out of nowhere and pushes the content away?

Good afternoon, you need to make an error block that is hidden, when you remove the .error-hide class from it, it should appear from nowhere and push the content below. I can't figure out how to do it.
This is how it is closed
610401dccbb90896863579.png
. And here it appears.
61040222f2ae5326552688.png
What styles are needed for such a transition?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2021-07-30
@Soft_touch_plastic


If you want the block to expand from the center to the sides, you also need to animate the left and top styles

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question