我在我的jQuery手机1.4.0中有一个可折叠集,当它像animation here一样展开时,我想为这个可折叠集添加一个自定义动画
my collapsible set at JSFiddle
我已经使用了以下样式来制作可折叠的动画,但它没有给我相同的result.How。当我的可折叠展开时,我可以将这个向下/向上滑动的动画应用到我的可折叠上吗?
请帮帮我..
.ui-collapsible-content {
-webkit-transition: all 1s;
-moz-transition: all 1s;
-ms-transition: all 1s;
-o-transition: all 1s;
transition: all 1s;
height: 2em;
overflow: hidden;
}
.ui-collapsible-content-collapsed {
display: block;
height: 0;
padding: 0 16px;
}发布于 2014-01-24 16:50:05
以下是我的代码
$("[data-role='collapsible']").collapsible({
collapse: function( event, ui ) {
$(this).children().next().slideUp(150);
},
expand: function( event, ui ) {
$(this).children().next().hide();
$(this).children().next().slideDown(150);
}
});这段代码是用jquery mobile 1.4.0测试的。谢谢。
https://stackoverflow.com/questions/21067210
复制相似问题