V
V
Vyacheslav2015-10-21 11:29:58
css
Vyacheslav, 2015-10-21 11:29:58

How to implement an animated adjustment of the height of the container to the content?

The script adds/removes blocks to the container without reloading the page, while the height of the container changes accordingly. How can I make this height adjustment animated using CSS?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mr Crabbz, 2015-10-21
@Punkie

.container {
   -webkit-transition: all 500ms ease;
   -moz-transition: all 500ms ease;
   -ms-transition: all 500ms ease;
   -o-transition: all 500ms ease;
   transition: all 500ms ease;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question