How to make my jQuery Accordion animate smoother

无人久伴 提交于 2021-01-29 15:57:49

问题


I would like my jquery accordion tab animate more smoothly. How do I change the speed?


回答1:


The full documentation can be found here including how to control animation properties.




回答2:


$('.#tab').accordion({speed:"slow"});



回答3:


This should work:

$('.yourAccordion').accordion({ speed: 'slow'});



回答4:


The key to the smooth action is the heightStyle, e.g.

$( "#accordion" ).accordion({
    heightStyle: "content"
});


来源:https://stackoverflow.com/questions/8679826/how-to-make-my-jquery-accordion-animate-smoother

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!