Pen Settings



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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.


<div class="modal">
	<div class="modal__wrapper">
		<div class="modal__header">
			<span class="modal__closeBtn">&times</span>
			<h3 class="modal__title">Академия</h3>
		<div class="modal__body">
			<p class="modal__text">Классическая гитара - основа, которая поможет разобраться с аккомпанементом и сольным исполнением. С неё мы рекомендуем начать погружение в мир музыки. Классическая гитара - идеальный старт для дальнейшего освоения акустической и электро гитар. При наличии прочной базы их изучение пройдёт в разы быстрее.</p>
		<div class="modal__footer">
			<h3 class="modal__title">команда разработчиков Web-dispute </h3>

<button>жмякни меня нежно</button>


	margin: 0;
	padding: 0;

button {
   opacity: 0.4;
	padding: 10px 30px;
	color: #ffffff;
	margin: 50px;
  background: linear-gradient(to top, #b5dbc8 0%,#828c95 36%,#28343b 100%);
		box-shadow: 0 0 0 60px rgba(0,0,0,0.1) inset, .1em .1em .2em #777;
.modal {
	justify-content: center;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	perspective: 500px;
.modal__header {
	display: flex;
	justify-content: flex-end;
.modal__closeBtn {
	font-size: 20px;
	color: #ffffff;

.modal .modal__wrapper {
	width: 50%;
	max-width: 500px;
	top: 15%;
	background: rgb(158, 154, 250);
	position: absolute;
	text-align: center;
	box-shadow: inset 0 0 13px 0 rgba(0,0,0,0.4);
	animation: modal;
.modal__header, .modal__body, .modal__footer {
	padding: 5px 15px;
.modal__header, .modal__footer {
	text-align: center;
	color: #ffffff;
.modal__body {
	background: #ffffff;

@keyframes modal {
	from {
		opacity: 0;
		top: 5%;
		transform: rotateX(15deg);
	to {
		opacity: 1;
		top: 15%;
		transform: rotateX(0deg);


                const btn = document.querySelector('button'),
  modal = document.querySelector('.modal'),
  closeBtn = document.querySelector('.modal__closeBtn');

btn.addEventListener('click', function(){ = 'flex';

closeBtn.addEventListener('click',function(){ = 'none';

window.addEventListener('click', function(e){
  if( === modal) { = 'none';