Guest User

Untitled

a guest
Nov 18th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. $(".swipe-area").swipe({
  2. swipeStatus:function(event, phase, direction, distance, duration, fingers)
  3. {
  4. if (phase=="move" && direction =="right") {
  5. $(".container").addClass("open-sidebar");
  6. return false;
  7. }
  8. if (phase=="move" && direction =="left") {
  9. $(".container").removeClass("open-sidebar");
  10. return false;
  11. }
  12. }
  13. });
  14.  
  15. .open-sidebar { left: 240px; }
  16.  
  17. .container {
  18. padding-left:0px;
  19. height: 100%;
  20. width: 100%;
  21. left: 0;
  22. -webkit-transition: left 0.4s ease-in-out;
  23. -moz-transition: left 0.4s ease-in-out;
  24. -ms-transition: left 0.4s ease-in-out;
  25. -o-transition: left 0.4s ease-in-out;
  26. transition: left 0.4s ease-in-out;
  27. }
Add Comment
Please, Sign In to add comment