javascript - jQuery toggle div: have below content to slide "gently" -
i use script toggle div animation. works charm, except content below div toggle moves jumpy when .click triggered.
$('.toggle').click(function() { var $toggled = $(this).attr('href'); $($toggled).siblings('.gallery:visible').hide(); $($toggled).toggle("slide", {direction: 'up'}, 750); return false; });
how can have content below slide "gently" (as content of toggled div does)? in advance! :-)
i can't understand call .toggle
regards the documentation. order of parameters, values, don't match documentation.
i have tried use .slidetoggle()
- works perfectly.
Comments
Post a Comment