Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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 id="wrapper">
	<form id="form1">
		<input type="checkbox" name="burger" id="burger"/>
		<label for="burger" id="menu-burger">
			<span class="bar1"></span>
			<span class="bar2"></span>
			<span class="bar3"></span>

		<div id="contenu">
			<div id="textes">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
				tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
				quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
				<p>Duis aute irure dolor in reprehenderit in voluptate velit esse
				cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
				proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>


                * {margin:0; padding:0; font-size:1em; box-sizing:border-box;}
body {font-family:sans-serif; font-size:1em; line-height:1.5;}

/* Style des contenus */
label {background:#147587; display:block; padding:.7em 1em; color:#F3ECE5; text-align:center; font-weight:bold; cursor:pointer;}
input[type="checkbox"] {display:none;}
#contenu {display:flex; align-items:center; background:#FECB5F; position:fixed; top:0; left:-100%; width:100%; height:100vh; overflow:hidden; transition:left ease-in 1s;}
#contenu #textes {width:60%; margin:0 auto;}
#contenu p {margin-bottom:.8em;}
#contenu p:last-child {margin-bottom:0;}

/* Menu burger */
#menu-burger {position:absolute; z-index:10; top:2.5em; right:3.5em; display:inline-block; cursor:pointer; display:block;}
#menu-burger .bar1,
#menu-burger .bar2,
#menu-burger .bar3 {display:block; width:32px; height:5px; background-color:#F1F1F1; margin:6px 0; transition:0.4s;}
#menu-burger:hover {opacity:.75; transition:.5s;}
input[type="checkbox"]#burger:checked ~ label .bar1 {-webkit-transform:rotate(-45deg) translate(-9px, 6px); transform:rotate(-45deg) translate(-9px, 6px);}
input[type="checkbox"]#burger:checked ~ label .bar2 {opacity: 0;}
input[type="checkbox"]#burger:checked ~ label .bar3 {-webkit-transform:rotate(45deg) translate(-8px, -8px); transform:rotate(45deg) translate(-8px, -8px);}

/* Effet Slide/Swipe pleine page */
#form1 input[type="checkbox"]:checked ~ #contenu {left:0;}