Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <body class="body">
<svg style="display: none" viewBox="0 0 20 20">
	<symbol id="vk">
		<g>
			<path
				d="M17.802 12.298c0 0 1.617 1.597 2.017 2.336 0.011 0.016 0.016 0.028 0.018 0.035 0.163 0.273 0.203 0.487 0.123 0.645-0.135 0.261-0.592 0.392-0.747 0.403 0 0-2.778 0-2.858 0-0.199 0-0.613-0.052-1.117-0.4-0.385-0.269-0.768-0.712-1.139-1.145-0.554-0.643-1.033-1.201-1.518-1.201-0.062 0-0.122 0.010-0.18 0.030-0.367 0.116-0.833 0.639-0.833 2.032 0 0.436-0.344 0.684-0.585 0.684 0 0-1.248 0-1.309 0-0.446 0-2.768-0.156-4.827-2.327-2.523-2.658-4.789-7.99-4.811-8.037-0.141-0.345 0.155-0.533 0.475-0.533h2.886c0.387 0 0.513 0.234 0.601 0.444 0.102 0.241 0.48 1.205 1.1 2.288 1.004 1.762 1.621 2.479 2.114 2.479 0.093 0 0.181-0.023 0.264-0.070 0.644-0.354 0.524-2.654 0.494-3.128 0-0.092-0.001-1.027-0.331-1.479-0.236-0.324-0.638-0.45-0.881-0.496 0.065-0.094 0.203-0.238 0.38-0.323 0.441-0.22 1.238-0.252 2.029-0.252h0.439c0.858 0.012 1.080 0.067 1.392 0.146 0.628 0.15 0.64 0.557 0.585 1.943-0.016 0.396-0.033 0.842-0.033 1.367 0 0.112-0.005 0.237-0.005 0.364-0.019 0.711-0.044 1.512 0.458 1.841 0.064 0.040 0.139 0.062 0.217 0.062 0.174 0 0.695 0 2.108-2.425 0.62-1.071 1.1-2.334 1.133-2.429 0.028-0.053 0.112-0.202 0.214-0.262 0.078-0.048 0.182-0.056 0.236-0.056h3.395c0.37 0 0.621 0.056 0.67 0.196 0.082 0.227-0.016 0.92-1.566 3.016-0.261 0.349-0.49 0.651-0.691 0.915-1.405 1.844-1.405 1.937 0.083 3.337z"></path>
		</g>
	</symbol>
</svg>

<svg style="display: none" viewBox="0 0 24 28">
	<symbol id="youtube">
		<g>
			<path
				d="M15.172 19.437v3.297c0 0.703-0.203 1.047-0.609 1.047-0.234 0-0.469-0.109-0.703-0.344v-4.703c0.234-0.234 0.469-0.344 0.703-0.344 0.406 0 0.609 0.359 0.609 1.047zM20.453 19.453v0.719h-1.406v-0.719c0-0.703 0.234-1.062 0.703-1.062s0.703 0.359 0.703 1.062zM5.359 16.047h1.672v-1.469h-4.875v1.469h1.641v8.891h1.563v-8.891zM9.859 24.938h1.391v-7.719h-1.391v5.906c-0.313 0.438-0.609 0.656-0.891 0.656-0.187 0-0.297-0.109-0.328-0.328-0.016-0.047-0.016-0.219-0.016-0.547v-5.688h-1.391v6.109c0 0.547 0.047 0.906 0.125 1.141 0.125 0.391 0.453 0.578 0.906 0.578 0.5 0 1.031-0.313 1.594-0.953v0.844zM16.562 22.625v-3.078c0-0.719-0.031-1.234-0.141-1.547-0.172-0.578-0.562-0.875-1.109-0.875-0.516 0-1 0.281-1.453 0.844v-3.391h-1.391v10.359h1.391v-0.75c0.469 0.578 0.953 0.859 1.453 0.859 0.547 0 0.938-0.297 1.109-0.859 0.109-0.328 0.141-0.844 0.141-1.563zM21.844 22.469v-0.203h-1.422c0 0.562-0.016 0.875-0.031 0.953-0.078 0.375-0.281 0.562-0.625 0.562-0.484 0-0.719-0.359-0.719-1.078v-1.359h2.797v-1.609c0-0.828-0.141-1.422-0.422-1.813-0.406-0.531-0.953-0.797-1.656-0.797-0.719 0-1.266 0.266-1.672 0.797-0.297 0.391-0.438 0.984-0.438 1.813v2.703c0 0.828 0.156 1.437 0.453 1.813 0.406 0.531 0.953 0.797 1.687 0.797s1.313-0.281 1.687-0.828c0.172-0.25 0.297-0.531 0.328-0.844 0.031-0.141 0.031-0.453 0.031-0.906zM12.344 8.203v-3.281c0-0.719-0.203-1.078-0.672-1.078-0.453 0-0.672 0.359-0.672 1.078v3.281c0 0.719 0.219 1.094 0.672 1.094 0.469 0 0.672-0.375 0.672-1.094zM23.578 19.938c0 1.797-0.016 3.719-0.406 5.469-0.297 1.234-1.297 2.141-2.5 2.266-2.875 0.328-5.781 0.328-8.672 0.328s-5.797 0-8.672-0.328c-1.203-0.125-2.219-1.031-2.5-2.266-0.406-1.75-0.406-3.672-0.406-5.469v0c0-1.813 0.016-3.719 0.406-5.469 0.297-1.234 1.297-2.141 2.516-2.281 2.859-0.313 5.766-0.313 8.656-0.313s5.797 0 8.672 0.313c1.203 0.141 2.219 1.047 2.5 2.281 0.406 1.75 0.406 3.656 0.406 5.469zM7.984 0h1.594l-1.891 6.234v4.234h-1.563v-4.234c-0.141-0.766-0.453-1.859-0.953-3.313-0.344-0.969-0.688-1.953-1.016-2.922h1.656l1.109 4.109zM13.766 5.203v2.734c0 0.828-0.141 1.453-0.438 1.844-0.391 0.531-0.938 0.797-1.656 0.797-0.703 0-1.25-0.266-1.641-0.797-0.297-0.406-0.438-1.016-0.438-1.844v-2.734c0-0.828 0.141-1.437 0.438-1.828 0.391-0.531 0.938-0.797 1.641-0.797 0.719 0 1.266 0.266 1.656 0.797 0.297 0.391 0.438 1 0.438 1.828zM19 2.672v7.797h-1.422v-0.859c-0.562 0.656-1.094 0.969-1.609 0.969-0.453 0-0.781-0.187-0.922-0.578-0.078-0.234-0.125-0.609-0.125-1.172v-6.156h1.422v5.734c0 0.328 0 0.516 0.016 0.547 0.031 0.219 0.141 0.344 0.328 0.344 0.281 0 0.578-0.219 0.891-0.672v-5.953h1.422z"></path>
		</g>
	</symbol>
</svg>
<header class="header">
	<div class="container">
		<div class="header__inner">
			<div class="user">
				<img src="https://sun1.beltelecom-by-minsk.userapi.com/YUgVtzW6Ij5oCWnhU-3kSFSQ4CKPR7sX_u0N0A/RL5OUy5Ih5w.jpg" alt="logo" class="user__logo">
				<div class="user__name">gitaramania.by</div>
			</div>
			<nav class="nav" id="menu">
				<a href="" class="nav__link">Проект 1</a>
				<a href="" class="nav__link">Проект 2</a>
				<a href="" class="nav__link">Прект 2</a>
				<button class="c-hamburger c-hamburger-line">
					<span>menu</span>
				</button>
			</nav>
		</div>
	</div>
</header>
<section class="about">
	<div class="container">
		<div class="about__inner">
			<div class="about__photo">
				<img src="https://sun9-14.userapi.com/dx4YcGR4O8vHSmNzbGi2GqKizWA-m8cHgdG01g/4z2VYoW-rjM.jpg" alt="" class="about__image">
			</div>
			<div class="about__content">
				<h3 class="about__title">Немного о себе</h3>
				<h2 class="about__bigTitle">Академия gitaramania.by</h2>
				<div class="about__text">
					<p>Закончил школу по классу классическая гитара: класс преподавателя Чайковского Генадия Петровича. Затем поступил в музыкальный колледж, по классу гитары в класс
						Трафимовича Анатолия Николаевича. На одном из фестивалей проводимых Игорем Константиновичем Шошиным Познакомился с великолепным музыкантом, только вернувшимся из
						королевской академии музыки Анатолием Изотовым, и после завершения колледжа переехал в Санкт-Петербург, где четыре года провел в интенсивном обучении под его
						руководством.
					</p>
					<p>
						После вернулся в свой родной город Бобруйск для передачи полученных знаний молодому поколению, в надежде создать крепкую гитарную команду. Продолжаю учиться в
						Смоленском государственном университете на эстрадном отделении: класс гитара эстрадного оркестра. Работаю над организацией профессионального обучения в студии
						gitaramania.by</p>
				</div>
				<a src="https://codepen.io/andreychernetsky/pen/PoPxppW" class="btn">
					подробнее
				</a>
			</div>
		</div>
	</div>
</section>


<script src="script.js"></script>
</body>
              
            
!

CSS

              
                
html {
	font-size: 15px;
}

*,
*:after,
*:before {
	box-sizing: border-box;
}

.container {
	width: 100%;
	max-width: 1100px;
	margin: auto;
	padding: 1rem 0 0 1rem;
}

.body {
	margin: 0;
	font-family: 'Montserrat', sans-serif;
	font-size: 1rem;
	color: #2b2a2c;
	transition: all ease 1s;
}

.body-active {
	margin-left: 350px;
}

/*оформление header*/
.header {
	padding: 1.2rem;
}

.header__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/*логотип*/
.user {
	display: flex;
}

.user__logo {
	width: 57px;
	height: 57px;
	display: block;
}

.user__name {
	font-size: 1.6rem;
	/*color: #2b2a2c;*/
	font-weight: 700;
	color: rgba(17%, 16%, 18%, 0.7);
}

/*оформление бургера и боковой панели*/
#menu {
	width: 300px;
	margin-left: -248px;
	background: #e5e5e5;
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	transition: all ease 1s;
	z-index: 999;
	box-shadow: 9px 0px 2px -4px rgba(0, 0, 0, 0.3);
	opacity: .3;
}

#menu.nav-active {
	margin-left: 0;
}

.c-hamburger {
	display: block;
	position: absolute;
	color: #ffffff;
	right: 0;
	top: 0;
	overflow: hidden;
	padding: 0;
	width: 56px;
	height: 56px;
	font-size: 0;
	cursor: pointer;
	outline: none;
	/*background: linear-gradient(#F3AE0F, #E38916) #E38916;*/

	transition: 0.2s;
	box-shadow: 0 0 0 60px rgba(0,0,0,0) inset, .1em .1em .2em #800;

}
.c-hamburger:hover {
	background: linear-gradient(#f5ae00, #f59500) #f5ae00;
}
.c-hamburger:active {
	background: linear-gradient(#bbbbbb, #bbbbbb) #bbbbbb;
}

.c-hamburger:focus {
	outline: none;
}

.c-hamburger span {
	display: block;
	position: absolute;
	top: 22px;
	left: 18px;
	right: 18px;
	height: 8px;
	background: #ffffff;
}

.c-hamburger span::before, .c-hamburger span::after {
	position: absolute;
	display: block;
	left: 0;
	width: 100%;
	height: 8px;
	background: #ffffff;
	content: "";
}

.c-hamburger span::before {
	top: -20px;
}

.c-hamburger span::after {
	bottom: -20px;
}

.c-hamburger-line {
	transition: background 0s 0.3s;
}

.c-hamburger-line {
	box-shadow: 0 0 0 60px rgba(0,0,0,0) inset, .1em .1em .2em #bbbbbb;
}

.c-hamburger-line span::before, .c-hamburger-line span::after {
	transition-duration: 0.3s, 0.3s;
	transition-delay: 0.3s, 0s;
}

.c-hamburger-line span::before {
	transition-property: top, transform;
}

.c-hamburger-line span::after {
	transition-property: bottom, transform;
}

.c-hamburger-line.is-active {
	background: green;
}

.c-hamburger-line.is-active span {
	background: none;
}

.c-hamburger-line.is-active span::before {
	top: 0;
	transform: rotate(-45deg);
}

.c-hamburger-line.is-active span::after {
	bottom: 0;
	transform: rotate(45deg);
}

.c-hamburger-line.is-active span::before, .c-hamburger-line.is-active span::after {
	transition-delay: 0s, 0.3s;
}
.about {
	margin: 0.4rem 0 3.4rem 0;
}
.about__inner {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	max-width: 1100px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .3), -23px 0 20px -23px rgba(0, 0, 0, .8), 23px 0 20px -23px rgba(0, 0, 0, .8), 0 0 40px rgba(0, 0, 0, .1) inset;
}

.about__content,
.about__photo {
	padding: 15px;
	width: 50%;
}
.about__photo {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
}
.about__photo::before {
	content: "";
	width: 527px;
	height: 561px;
	background: #eefefe;
	position: absolute;
	/*left: 1rem;
	bottom: 0;*/
	z-index: 1;
	background-image: url("https://sun9-47.userapi.com/c853524/v853524410/1930e4/Zr4XjIIyqRE.jpg");

}
.about__content {
	padding-left: 2.3rem;
	padding-right: 2rem;
}
.about__title {
	text-align: center;
	font-size: 2rem;
	color: #2b2a2c;
	font-weight: 200;
}

.about__bigTitle {
	text-align: center;
	margin-bottom: 28px;
	font-size: 2.5rem;
	color: #2b2a2c;
	font-weight: 700;
}
.about__text {
	font-size: 1.1rem;
	text-align: center;
	color: #6a696b;
}
.about__image{
	width:100%;
	max-width: 100%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .3), -23px 0 20px -23px rgba(0, 0, 0, .8), 23px 0 20px -23px rgba(0, 0, 0, .8), 0 0 40px rgba(0, 0, 0, .1) inset;
	z-index: 3;
}

.btn {
	margin-bottom: 10px;
	display: inline-block;
	vertical-align: top;
	/*em дает возможность подстраивать внутрений отступ относительно ее оазмера заданного в пикселях*/
	padding: 1.05em 1.7em;
	min-width: 170px;
	border: 1px solid #6a696b;
	border-radius: 1.8em;
	background: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 1.06rem;
	line-height: 1.1;
	color: #2b2a2c;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	transition: background-color .2s linear, color .2s linear, box-shadow .2s linear, border-color .2s linear;
	box-shadow: 0 -3px  rgba(43, 42, 44, 0.7) inset;
}

.btn:focus {
	outline: none;
}

.btn:hover {
	background-color: #2b2a2c;
	box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.24);
	color: #fff;
	border-color: #2b2a2c;
}
@media (max-width:921px ) {
	.about__inner {
		display: flex;
		flex-direction: column;
	}
	.about__content {
		width: 100%;
	}

	.about__photo {
		width: 100%;
	}
	.about__photo::before {
	display: none;

	}
}


              
            
!

JS

              
                document.querySelector('.c-hamburger').addEventListener('click', function (e) {
  e.preventDefault();
  // this.classList.toggle('is-active');
  if (this.classList.contains('is-active')) {
    this.classList.remove('is-active');
    document.querySelector('#menu').classList.remove('nav-active');
    document.body.classList.remove('body-active');
  } else {
    this.classList.add('is-active');
    document.querySelector('#menu').classList.add('nav-active');
    document.body.classList.add('body-active');
  }
});
              
            
!
999px

Console