I have two problems with this code:
First I would like to reduce the speed of the effect.
Second as you would for the effect to operate to close a tab and then there will be the following newly tab
if ($('#sidebar ul').length) {
$("#sidebar ul").accordion({
event: "mouseover",
active: 1,
collapsible: false,
autoHeight: false
});
}
Example URL: http://jsfiddle.net/8pKMh/
For the speed, use animate:
From the jquery ui docs:
Animate
If and how to animate changing panels.
Multiple types supported: