Weird behaviour of jquery's hide/show with the 'slide' effect. How to change?
Posted
by Tommy
on Stack Overflow
See other posts from Stack Overflow
or by Tommy
Published on 2009-11-18T10:51:17Z
Indexed on
2010/05/09
15:08 UTC
Read the original article
Hit count: 150
jQuery
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 knows how to fix it?
© Stack Overflow or respective owner