Monday, May 20, 2024
51
rated 0 times [  58] [ 7]  / answers: 1 / hits: 21375  / 10 Years ago, tue, march 11, 2014, 12:00:00

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?


More From » twitter-bootstrap

 Answers
9

A bit of CSS and jQuery are enough to rebuild this function. Take a look at my jsfiddle.



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;
});


Full Example: http://jsfiddle.net/9Le8X/2/


[#72044] Monday, March 10, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
grayson

Total Points: 36
Total Questions: 113
Total Answers: 95

Location: Tonga
Member since Fri, Aug 21, 2020
4 Years ago
grayson questions
;