本文介绍了关闭动画Jquery手风琴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何关闭此手风琴的动画效果?所以,当我点击这些部分时,它会立即打开,而不是放慢速度下降?
How can i turn off the animation effect on this accordion? so that when I click the sections it just opens instantly, rather than slow drop down?
www.immateriallabour.com/EBH-Pub
www.immateriallabour.com/EBH-Pub
<script>
$(function() {
$( "#accordion" ).accordion({
collapsible: true
});
({ animate: false });
});
</script>
推荐答案
如果你想阻止手风琴动画,你应该将相应的属性作为配置对象的一部分传递,如下所示:
If you want to prevent the accordion animation, you should pass the appropriate property as part of the configuration object, as follows:
$(function () {
$("#accordion").accordion({
collapsible: true,
animate: false
});
});
这篇关于关闭动画Jquery手风琴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!