Problem using JQuery to animate div to 100% height

前端 未结 2 855
一生所求
一生所求 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:08

    Try the slideDown and slideUp effect methods, which should do exactly what you're looking for.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题