Guest User

Untitled

a guest
Mar 22nd, 2017
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.04 KB | None | 0 0
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4.  
  5.     <script src="https://rawgit.com/andreasring/slideout/development/dist/slideout.js"></script>
  6.     <link rel="stylesheet" type="text/css" href="https://rawgit.com/andreasring/slideout/development/index.css">
  7.  
  8.     <style>
  9.  
  10.         .slideout-slide-menu {
  11.             left: -256px;
  12.             display: block;
  13.             z-index: 10;
  14.             will-change: transform;
  15.         }
  16.  
  17.         #menu {
  18.             background-color: #909090;
  19.             height: 100%;
  20.         }
  21.  
  22.         #panel {
  23.             height: 100%;
  24.             width: 100%;
  25.             background-color: #ddd;
  26.             overflow: hidden;
  27.         }
  28.  
  29.         html, body {
  30.             margin: 0;
  31.             height: 100%;
  32.             width: 100%;
  33.         }
  34.  
  35.     </style>
  36. </head>
  37. <body>
  38.  
  39.     <nav id="menu" class="menu slideout-slide-menu">
  40.         <p>My menu</p>
  41.     </nav>
  42.  
  43.     <div id="panel">
  44.         <p>My panel</p>
  45.     </div>
  46.  
  47.     <script>
  48.  
  49.         // Setup the slideout menu
  50.         var slideout = new Slideout({
  51.             'panel':     document.getElementById('panel'),
  52.             'menu':      document.getElementById('menu'),
  53.             'mode':      'slide' // <---- New option (slide|push)
  54.         });
  55.  
  56.     </script>
  57.  
  58. </body>
  59. </html>
Advertisement
Add Comment
Please, Sign In to add comment