Change animation speed of Jquery UI Accordion

ToraRTC picture ToraRTC · Sep 26, 2011 · Viewed 19.4k times · Source

I'm using the Jquery UI Accordion, and I haven't found anywhere in the documentation on how to change the speed of the animation. I've found people suggest using option "animated: 'bounceslide'" but haven't been able to find what the different available options are for animated.

My current js is as follows

    $( "#accordion" ).accordion({
        event: "mouseover",
        animate:"slow",
        active:false
    });

The "animate:"slow" is not correct and therefore not working. Any ideas?

Answer

Mehdiway picture Mehdiway · Nov 19, 2013

This works fine for me :

$("#accordion").accordion({
    animate: {
        duration: 500
    }
});