Problem using JQuery to animate div to 100% height

前端 未结 2 867
一生所求
一生所求 2021-01-20 13:03

Hi I\'m using Jquery to animate a div from a set height to 100% and back to a set height again. This is used to show/hide text from a wordpress post that is longer then the

2条回答
  •  情话喂你
    2021-01-20 13:23

    I've had problems before with trying to mix different types of values in animate. You might try getting the window height and converting it to ems to see if it likes an em-to-em animation better than em-to-percent. It may or may not fix it for you, but that's my thought.

提交回复
热议问题