开发者

Weird behaviour of jquery's hide/show with the 'slide' effect. How to change?

When doing

$('.mydiv').show('slide', {direction:up}, 1500); //syntax may be a little off

jQuery seems to - just before starting the animation - make room for the soon to be showed div. This creates a non-smooth effect making all elements below the showed div shift away in one big go.

I would like to see the elements below the div move away as the div is animated/showed. The jQuery native hide()/show() function works like this, how come the slide effect of hide/show doesn't?

Anyone开发者_如何学C knows how to fix it?


Maybe you could try to use slideDown effect instead? (http://docs.jquery.com/Effects/slideDown)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜