Using ajax, a different amount of information is displayed in one block, and this block changes its size under the information, respectively, how to animate this height change? PS There is an idea that you need to get the current height value using heigh () and use animate, but I don’t know how to substitute the returned height value into animate, because I didn’t study javascript (I’ll plan to continue)

    1 answer 1

    Not everything is as simple as it may seem at first glance. Sketched you primerchik . Note that the css rule overflow: hidden is installed on the main block ; , and the dynamic addition of content occurs, so to speak, in an auxiliary internal wrapper block. But in general, I hope to figure it out.