<!DOCTYPE html>
<html lang="ru">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=7; IE=Edge">
<title></title>
<meta name="description" content="">
    
<link rel="stylesheet" href="css/sait.css">

<meta name="viewport" content="width=device-width">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> 
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="js/mobmenu.js"></script>
<script src="js/modaljs.js"></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.2/TweenMax.min.js'></script>
    
<script src="js/menupc.js"></script><!--ПК Меню-->
</head>
<body>
    
<div class="fonverh">
<div class="headerpc">
    
<!--Меню ПК--> 
<div class="dark"></div>
  <div class="burger_box">
    <a href="#" class="menu-icon js-menu_toggle burger">
        <span class="menu-icon_box">
           <span class="menu-icon_line menu-icon_line--1"></span>
           <span class="menu-icon_line menu-icon_line--2"></span>
           <span class="menu-icon_line menu-icon_line--3"></span>
        </span>
    </a>
</div>
<div class="side_menu">
  <div class="burger_box">
    <div class="menu-icon-container">
       <a href="#" class="menu-icon js-menu_toggle opened hidden">
          <span class="menu-icon_line menu-icon_line--1"></span>
          <span class="menu-icon_line menu-icon_line--2"></span>
          <span class="menu-icon_line menu-icon_line--3"></span>
       </a>
    </div>
</div>
<div class="container">
    <ul class="list_load">
	   <li class="list_item"><a href="#menu1">Меню 1</a></li>
	   <li class="list_item"><a href="#menu2">Меню 2</a></li>
	   <li class="list_item"><a href="#menu3">Меню 3</a></li>
	   <li class="list_item"><a href="#menu4">Меню 4</a></li>
     
     <li class="list_item"><a href="#menu1">Меню 5</a></li>
	   <li class="list_item"><a href="#menu2">Меню 6</a></li>
	   <li class="list_item"><a href="#menu3">Меню 7</a></li>
	   <li class="list_item"><a href="#menu4">Меню 8</a></li>
     
     <li class="list_item"><a href="#menu1">Меню 9</a></li>
	   <li class="list_item"><a href="#menu2">Меню 10</a></li>
	   <li class="list_item"><a href="#menu3">Меню 11</a></li>
	   <li class="list_item"><a href="#menu4">Меню 12</a></li>
    </ul>
  </div>
</div>
<!--Меню ПК енд--> 
    
</div>
 </div>
    
<div class="zagolovokbl">
<div id="menu1"><h1>меню 1</h1></div>
</div>   
<div class="blocktovarov">
<div class="blok1"></div>
</div>
 
<div class="zagolovokbl">
<div id="menu2"><h1>меню 2</h1></div>
</div> 
<div class="blocktovarov">
<div class="blok2"></div>
</div>
 
<div class="zagolovokbl">
<div id="menu3"><h1>меню 3</h1></div>
</div> 
<div class="blocktovarov">
<div class="blok3"></div>
</div> 
    
<div class="zagolovokbl">
<div id="menu4"><h1>меню 4</h1></div>
</div> 
<div class="blocktovarov">
<div class="blok4"></div>
</div> 


<div class="podvalfon"></div>
</body>
</html>

* {
	padding: 0;
	margin: 0;
 }

/*Выпадающее меню*/
.side_menu {
  position: fixed;
  background: #fff;
  height: 100%;
  left: -320px;
  top: 0;
  width: 320px;
  -webkit-transition: all 300ms ease-in-out;
  transition: all 300ms ease-in-out;
  z-index: 9999;
}

.dark {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
}

.list_load {
  display: none;
  list-style: none;
  padding: 0;
}

.side_menu .container {
  margin-top: 15px;
  margin-left: 9px;
  overflow-y: scroll;
  padding: 0px 16px;
  height: 100%;
  width: 272px;
}

.list_item a {
  display: block;
  font-family: system, -apple-system, BlinkMacSystemFont, Segoe UI, tahoma, Arial, sans-serif;
  font-size: 16px;
  color: #000;
  width: 218px;
  padding: 0px 15px;
  line-height: 42px;
  text-decoration: none;
}

.list_item a:hover {
  background: #af8c6a;
  color: #fff;
  outline-offset: -4px;
  outline: 5px solid #fff;
  border-radius: 20px;
}

/*Кнопка*/
.burger_box {
  float: left;
  clear: left;
  margin-top: 27px;
  margin-left: 8px;
}

.burger_box .menu-icon_box {
  position: absolute;
  display: inline-block;
  width: 28px;
  height: 26px;
  border: 1px solid rgba(255,255,255,.4);
  padding: 10px 9px;
  border-radius: 8px;
}

.burger_box .menu-icon_box:hover {
  border: 1px solid #fff;
}

.burger_box .menu-icon_line {
  position: absolute;
  display: inline-block;
  background: #fff;
  margin-top: 10px;
  border-radius: 20px;
  height: 4px;
  width: 28px;
}

.burger_box .menu-icon_line--1 {
  top: 1px;
}

.burger_box .menu-icon_line--2 {
  top: 11px;
}

.burger_box .menu-icon_line--3 {
  top: 21px;
}
	
.burger_box .menu-icon.opened .menu-icon_line {
  left: 327px;
  top: 9px;
}

.burger_box .menu-icon.opened .menu-icon_line--1 {
  transform: rotate3d(0, 0, 1, 45deg);
  -webkit-transform: rotate3d(0, 0, 1, 45deg);
}

.burger_box .menu-icon.opened .menu-icon_line--2 {
  opacity: 0;
}

.burger_box .menu-icon.opened .menu-icon_line--3 {
  transform: rotate3d(0, 0, 1, -45deg);
  -webkit-transform: rotate3d(0, 0, 1, -45deg);
}

.burger_box .menu-icon {
  transition: opacity .8s ease-in;
}

.burger_box .menu-icon.hidden {
  transition: .1s ease-in;
  opacity: 0;
}




.fonverh {
  width: 100%;
  height: 100px;
  min-width: 1250px;
  background: #333;
 }

.headerpc {
  margin: 0 auto;
  width: 1250px;
}

.zagolovokbl {
	float: left;
	width: 1250px;
	height: 35px;
	margin-top: 20px;
    margin-bottom: 10px;
 }

h1 {
    font-family: system, -apple-system, BlinkMacSystemFont, Segoe UI, tahoma, Arial, 'Open Sans', sans-serif;
    font-size: 24px;
	color: #333;
    margin-left: 370px;
    font-weight: 600;
	letter-spacing: 1px;
    text-transform: uppercase;
 }

.blocktovarov {
	margin: auto;
	width: 1240px;
 }

.blok1 {
	float: left;
	width: 100%;
	height: 600px;
    background: #6666ff;
 }

.blok2 {
	float: left;
	width: 100%;
	height: 600px;
    background: #b366ff;
 }

.blok3 {
	float: left;
	width: 100%;
	height: 600px;
    background: #cc0099;
 }

.blok4 {
	float: left;
	width: 100%;
	height: 600px;
    background: #666699;
 }

.podvalfon {
  float: left;
  margin-top: 50px;
  width: 100%;
  min-width: 1250px;
  height: 450px;
  background: #333;
 }
$(document).on('click', '.js-menu_toggle.burger', function(e) {
  e.preventDefault();
  $('.list_load, .list_item').stop();
  $('body').css("overflowY", "hidden");
  $('.menu-icon.opened').removeClass('hidden');

  $('.dark').css({
    'display': 'block'
  });

  $('.side_menu').css({
    'left': '0px'
  });

  var count = $('.list_item').length;
  $('.list_load').slideDown((count * .0) * 0);
  $('.list_item').each(function(i) {
    var thisLI = $(this);
    timeOut = 0 * i;
    setTimeout(function() {
      thisLI.css({
        'opacity': '1',
        'margin-left': '0'
      });
    }, 0 * i);
  });
});

$(document).on('click', '.js-menu_toggle.opened', function(e) {
  e.preventDefault();
  $('body').css("overflowY", "scroll");
  close_l();
});

function close_l() {
	$('.menu-icon.opened').addClass('hidden');

  $('.dark').css({
    'display': 'none'
  })

  $('.list_load, .list_item').stop();

  $('.menu-icon.opened').addClass('hiden');

  $('.side_menu').css({
    'left': '-320px'
  });

  var count = $('.list_item').length;
  $('.list_item').css({
    'opacity': '0',
    'margin-left': '-20px'
  });
  $('.list_load').slideUp(0);
}

$(document).on('click', '.list_item', function(e) {
  close_l();
});

$(document).on('click', '.dark', function(e) {
  close_l();
  $('body').css("overflowY", "scroll");
});

$(document).on('click', '.js-menu_toggle.opened', function(e) {
  close_l();  
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.