I have created a script to make my div expandable.
$('.expandable').find('h2').on('click', function(){
$(this).parent().css({height: (parseInt($(this).parent().css('height')) > 50)?'25px':'auto'});
$(this).find('i').toggleClass('icon-plus-sign icon-minus-sign', 300);
})
How can i configure the speed or duration of my div expandable, i want it going down slower and smoothly.
Thanks
Here my accordion
How about using slideToggle():
Add an id to the list so we can find it easy:
And hide it from start with css:
See updated: http://jsfiddle.net/JSG9A/2/