B
B
Bogdan2018-10-03 17:22:55
css
Bogdan, 2018-10-03 17:22:55

Animation height: auto?

Hello. How to do it correctly so that the animation would work when the height of the block is auto, it needs to be hidden and then displayed with animation

there is a crutch with max-height - but this is also a crutch, because if you set it large, and the block is really small, then the animation will work very quickly. Maybe there are other options like transform?
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Magnus Keef, 2018-10-03
@SecurityYourFingers

Animation time increase
Here is a good tutorial on your question

If interesting
jquery is used here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question