Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".swipe-area").swipe({
- swipeStatus:function(event, phase, direction, distance, duration, fingers)
- {
- if (phase=="move" && direction =="right") {
- $(".container").addClass("open-sidebar");
- return false;
- }
- if (phase=="move" && direction =="left") {
- $(".container").removeClass("open-sidebar");
- return false;
- }
- }
- });
- .open-sidebar { left: 240px; }
- .container {
- padding-left:0px;
- height: 100%;
- width: 100%;
- left: 0;
- -webkit-transition: left 0.4s ease-in-out;
- -moz-transition: left 0.4s ease-in-out;
- -ms-transition: left 0.4s ease-in-out;
- -o-transition: left 0.4s ease-in-out;
- transition: left 0.4s ease-in-out;
- }
Add Comment
Please, Sign In to add comment