开发者

jquery slideDown() animation is choppy when in container w/o fixed height

开发者 https://www.devze.com 2023-02-15 12:06 出处:网络
That\'s pretty much it. I have a hidden div that I want to show using slideDown(also tried jquery UI .slide(\'blind\')). If I set a fixed height on its container, the animation is smooth as a baby\'s

That's pretty much it. I have a hidden div that I want to show using slideDown(also tried jquery UI .slide('blind')). If I set a fixed height on its container, the animation is smooth as a baby's bottom. But if I set it the height to auto and have the the slide animation push the height of the container, like I want to, the animation is choppy - there are maybe five "frames"开发者_运维技巧. Is there a workaround for this?


Ahhh the culprit was the parent's -moz-box-shadow. Removing it fixed the problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消