Hi all,

I've written a short accordion-like script to show/hide a element. The
problem is the slideToggle animation skips just before completion
rendering it very 'unsmooth'. The slideUp seems to work just fine.

At first I thought it would be fixed by removing all padding but
didn't seem to fix it.

It can be seen here: http://lyf.dk/t/slide and the script is like
this:

$(document).ready(function() {
        $('div.news> div').hide();
        $('div.news> h3').click(function() {
                $('.news h3').removeClass('on');
                $(this).addClass('on')
                .next('div').slideToggle('10000')
                .siblings('div:visible').slideUp('10000');
        });
});

Thanks in advance,
Oskar Rough

Reply via email to