开发者

jquery slider jump to height glitch

开发者 https://www.devze.com 2022-12-29 14:46 出处:网络
Does anybody know how to fix the glitch in jquery where the sliding block jumps into place when it is a large block being slid.

Does anybody know how to fix the glitch in jquery where the sliding block jumps into place when it is a large block being slid.

Example

http://jsbin.com/emoba5/5/edit

Click on posture two to see the jump. I have seen some fixes like this one

http://jqueryfordesigners.com/slidedown-animation-jump-revisited/

but have no id开发者_开发问答ea how to implement it to my code?

Thanks for having a look :)


Give the container you're sliding a width, like this:

.toggle_container .block { width: 200px; }

I know I sound crazy, but trust me on this one. Here's your example with the above CSS working.

0

精彩评论

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

关注公众号