Skip to content

Commit 82aacd2

Browse files
committed
nicer effect for the slide out menu
1 parent e116f49 commit 82aacd2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

menu.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ jQuery('.sidebar-toggle').click(function() {
2626
jQuery('.next_link').hide();
2727
jQuery('.wrapper').css("overflow", "hidden");
2828
jQuery('.wrapper').css("margin-left", "300px");
29+
jQuery('.wrapper').css("margin-right", "-300px");
2930
jQuery('.sidebar').css("margin-left", "0px");
3031
} else {
3132
// its already on the screen
3233
jQuery('.wrapper').css("margin-left", "0px");
3334
jQuery('.sidebar').css("margin-left", "-300px");
35+
jQuery('.wrapper').css("margin-right", "0px");
3436
jQuery('.prev_link').show();
3537
jQuery('.next_link').show();
3638
}

0 commit comments

Comments
 (0)