css3 height transition not working

前端 未结 4 968
予麋鹿
予麋鹿 2021-01-07 18:44

i have a problem using css3 transitions how can i make the transition smooth it appears instantly
i want the div box to slowly change its height when i hover over it<

4条回答
  •  不思量自难忘°
    2021-01-07 19:10

    I believe you need to set a specified height instead of auto. http://jsfiddle.net/BN4Ny/ this does a smooth expansion. Not sure if you wanted that little close open effect though. I just forked your jsfiddle and added a specified height.

提交回复
热议问题