Answer the question
In order to leave comments, you need to log in
How to make this code work?
Here is the codepen.io/anon/pen/PPegLx project itself and its code, but with top: -100% the button is not pressed and that same slide-out menu is not obtained, and if top: -100% is removed, then the side menu is below, but it works .How to fix it?
Answer the question
In order to leave comments, you need to log in
You have the code responsible for the click event - here it is:
$('[data-toggle]').click(function () {
var toggle_el = $(this).data('toggle');
$(toggle_el).toggleClass('open-sidebar');
});
<div class='description' data-toggle='.container'>
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question