哪个滑出面板与bootstrap 3兼容? [英] Which slide out panel is compatible with bootstrap 3?
本文介绍了哪个滑出面板与bootstrap 3兼容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图使用这个带有Bootstrap的滑出面板,它可以让你从右边滑出 http://www.building58.com/examples/tabSlideOut.html 。但它似乎不兼容。有人可以推荐哪种滑出我可以使用的与引导程序兼容的面板吗?
I was trying to use this slide out panel with Bootstrap, which give you the option to slide out from the right http://www.building58.com/examples/tabSlideOut.html . but it doesnt seem compatible. can someone recommend which slide out panel I can use that is compatible with bootstrap?
推荐答案
一些CSS和jQuery就足够了重建此功能。看看我的jsfiddle。
A bit of CSS and jQuery are enough to rebuild this function. Take a look at my jsfiddle.
jQuery Snippet
jQuery Snippet
$('#opener').on('click', function() {
var panel = $('#slide-panel');
if (panel.hasClass("visible")) {
panel.removeClass('visible').animate({'margin-left':'-300px'});
} else {
panel.addClass('visible').animate({'margin-left':'0px'});
}
return false;
});
完整示例: http://jsfiddle.net/9Le8X/2/
这篇关于哪个滑出面板与bootstrap 3兼容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文