国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

javascript - How to implement variable height animation?
我想大聲告訴你
我想大聲告訴你 2017-06-26 10:56:12
0
1
943

How to implement an animation with a variable height of p? For example, if a p is display:none, when a button is clicked, it will be displayed, and the height will gradually change from 0 to the maximum height of the p. The answer from Google is to use max-heigth. However, if the max-height setting is unreasonable (either too large or too small), the animation will be unnatural.

我想大聲告訴你
我想大聲告訴你

reply all(1)
學習ing

The easiest way is to use JQ’s slideUp and slideDown methods.
The following is the demo I wrote in native.
https://jsfiddle.net/11wrgm7b/

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template