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.


                <h4>Click the hamburger menu to see it in action!</h4>
<button class="hamburger">
	<span class="line"></span>
	<span class="line"></span>
	<span class="line"></span>
	<p>Created with <i class="fa fa-heart"></i> by <a href="">Florin Pop</a></p>


                @import url('');

.hamburger {
	border: 0;
	background-color: transparent;
	cursor: pointer;

.hamburger:focus {
	outline: 0;

.hamburger .line {
	background-color: #fff;
	display: block;
	margin: 5px 0;
	height: 2px;
	width: 30px;
	transition: all .1s ease-in;
} .line:nth-child(1) {
	transform:translateY(7px) rotate(45deg) ;
} .line:nth-child(2) {
	opacity: 0;
} .line:nth-child(3) {
	transform:translateY(-7px) rotate(-45deg) ;

/* Extra styles */

body {
    background-image: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
	color: #fff;
	display: flex;
	flex-direction: column;
	font-family: 'Lato', sans-serif;
	justify-content: center;
	align-items: center;
	margin: 0;
	height: 100vh;

body h4 {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);

.hamburger:focus {
	outline: 0;

footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	text-align: center;
	letter-spacing: 1px;

footer i {
	color: red;

footer a {
	color: #3C97BF;
	text-decoration: none;


                const hamburger = document.querySelector('.hamburger');

hamburger.addEventListener('click', () => {