我有一个 Accordion ,但我希望内容在 Accordion 放下后从左侧滑入。
到目前为止,我的代码但这会使原始幻灯片变得不稳定。
我还有一个 fiddle显示原始代码...
$(function () {
$(".expand").on("click", function () {
$(this).next().toggle("slide", {
direction: "left"
});
$expand = $(this).find(">:first-child");
if ($expand.text() == "\u25B6") {
$expand.text("\u25BC");
} else {
$expand.text("\u25B6");
}
});
});
最佳答案
试试这个 fiddle 。
$(".expand").on("click", function () {
$('.detail').toggle('slide');
})
关于javascript - Accordion 中的内容从左侧滑入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30889313/