<body>
<header>
<a class='icon_menu'><span></span></a>
<ul class='top_menu' id='menu_main'>
<li><a href='' class='top_menu__item'>Туры</a></li>
<li><a href='' class='top_menu__item'>Цены</a></li>
<li><a href='' class='top_menu__item'>Аренда жилья</a></li>
<li><a href='' class='top_menu__item'>Аренда снаряжения</a></li>
<li><a href='' class='top_menu__item'>Окрестности</a></li>
</ul>
</header>
<div class='main'>
<h1>Отдыхайте в горах Колорадо</h1>
</div>
</body>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: fixed url(https://image.ibb.co/h8pWCq/silverthorne.jpg) no-repeat;
background-size: cover;
font-family: 'Calibri';
}
a,
a:visited {
text-decoration: none;
color: #fff;
}
li {
list-style-type: none;
}
.main {
margin: 0 auto;
width: 70%;
}
h1 {
font-size: 4em;
letter-spacing: .1em;
text-transform: uppercase;
color: #fff;
text-align: center;
margin-top: 20%;
}
.icon_menu {
height: 32px;
width: 43px;
margin: 3%;
position: relative;
display: inline-block;
vertical-align: middle;
cursor: pointer;
z-index: 20;
}
.icon_menu span {
display: block;
background: #fff;
width: 100%;
height: 4px;
margin-top: -2px;
position: absolute;
left: 0;
top: 50%;
transition: all 0.3s ease;
}
.icon_menu:before,
.icon_menu:after {
content: '';
display: block;
background: #fff;
width: 100%;
height: 4px;
position: absolute;
left: 0;
transform-origin: center center;
transform: rotate(0deg);
transition: all 0.3s ease;
}
.icon_menu:before {
top: 2px;
margin-top: -2px;
}
.icon_menu:after {
bottom: 2px;
margin-bottom: -2px;
}
.menu_shown .icon_menu span {
background: transparent;
}
.menu_shown .icon_menu:before {
top: 50%;
transform: rotate(45deg);
}
.menu_shown .icon_menu:after {
bottom: 50%;
transform: rotate(-45deg);
}
.top_menu {
position: absolute;
top: 0;
left: 0;
width: 100%;
max-width: 460px;
min-height: 100vh;
text-align: center;
padding-top: 112px;
padding-bottom: 80px;
background: #010005;
z-index: 10;
font-variant: small-caps;
font-size: 20px;
transition: all .4s ease-in-out;
transform: translateX(-100%);
}
.menu_shown .top_menu {
transform: translateX(0);
}
.top_menu__item {
display: block;
line-height: 2;
padding: 25px 0;
background: transparent;
transition: all .3s ease;
letter-spacing: .04em;
}
.top_menu__item:hover{
background: rgba(123, 119, 193, 0.2);
}
$('.icon_menu').click(function(){
$('body').toggleClass('menu_shown');
});
This Pen doesn't use any external CSS resources.