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. 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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <div class="wrapper">
	<h1>Off Canvas Menu with Animated Links</h1>
	<div class="mobile">
		<!-- Checkbox to toggle the menu -->
		<input type="checkbox" id="tm" />
		<!-- The menu -->
		<ul class="sidenav">
			<li><a href="#"><i class="fa fa-check"></i><b>Tasks</b></a></li>
			<li><a href="#"><i class="fa fa-inbox"></i><b>Messages</b></a></li>
			<li><a href="#"><i class="fa fa-pencil"></i><b>New Post</b></a></li>
			<li><a href="#"><i class="fa fa-cog"></i><b>Settings</b></a></li>
			<li><a href="#"><i class="fa fa-star"></i><b>Starred</b></a></li>
			<li><a href="#"><i class="fa fa-power-off"></i><b>Logout</b></a></li>
		<!-- Content area -->
			<!-- Label for #tm checkbox -->
			<label for="tm"><span>menu</span> <i class="fa fa-chevron-right"></i></label>
<span class="madewith">Made with <i class="fa fa-heart heart"></i> By <a href="">Matheus Silva</a> <span id="fbm">Happy bithday father!!</span></span>
              $darkPrimaryColor:   #00796B;
$primaryColor:       #009688;
$lightPrimaryColor:  #B2DFDB;
$textPrimaryColor:   #FFFFFF;
$accentColor:        #536DFE;
$primaryTextColor:   #212121;
$secondaryTextColor: #727272;
$dividerColor:       #B6B6B6;
$barColor:           #ffffff;
/*Fontawesome Iconfont*/
@import url(;

@import url('');
/*Montserrat, Open Sans*/
@import url(,300);

* {margin: 0; padding: 0;}
html, body {
  width: 100%;
  height: 100%;
  background: #333;

.wrapper {
  width: 645px;
  height: 500px;
  margin: 35px auto 0 auto;
h1 {
	color: white; font: 300 40px Inconsolata;
	width: 300px; padding: 30px; float: left;

.mobile {
	float: left;
  position: relative;
	box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.5);
	overflow: hidden;
/*Hiding the checkbox*/
#tm {display: none;}
/*Content area*/
.mobile section {
	background: url("");
  background-color: #303F9F;
	width: 285px;
  height: 500px;
	position: relative;
  transition: all 0.25s;
.mobile section label {
  outline: none;
	color: rgb(0,128,128);
  font: bold 14px Inconsolata;
  text-align: center;
	border: 2px solid rgb(0,128,128);
  border-radius: 4px;
	display: block;
  padding: 10px 0;
	width: 25%;
  position: absolute;
  left: 20%; top: 100px;
	cursor: pointer;
  text-transform: uppercase;
  transition: all 0.4s ease;
    content: '';
    width: 5px;
    height: 10px;
    background-color: salmon;
/*Nav styles*/
.sidenav {
	background: rgb(0,128,128);
  width: 150px;
	position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  padding-top: 100px;
.sidenav li {
  list-style-type: none;
  transition: all .5s;
.sidenav li:hover {
  background: rgb(255,87,34);
.sidenav a { 
  color: rgb(255,255,255);
  text-decoration: none;
.sidenav b {
	font: bold 12px/48px Inconsolata;
  display: block;
	opacity: 0;
  transform: translateX(50px);
  transition: all 0.4s;
.sidenav i {
	display: block; width: 50px; float: left; 
	font-size: 16px; line-height: 48px; text-align: center;
/*Animation controls using checkbox hack*/
/*Animate content area to the right*/
  transform-origin: right;
#tm:checked ~ section {
  transform: translateX(150px);
/*Animate links from right to left + fade in effect*/
#tm:checked ~ .sidenav b {
  opacity: 1;
  transform: translateX(0);
#tm:checked ~ section label {
  width: 30%;
  border-radius: 10%;
  width: 10%;
    display: none;
#tm:checked ~ section label i{
  margin-left: -10%;
  transform: rotate(180deg);
/*Adding delay to link animation - in multiples of .08s*/
/*One can use jQuery also for creating the delayed effect. But I will stick to manual CSS.*/
#tm:checked ~ .sidenav li:nth-child(1) b {transition-delay: 0.08s;}
#tm:checked ~ .sidenav li:nth-child(2) b {transition-delay: 0.16s;}
#tm:checked ~ .sidenav li:nth-child(3) b {transition-delay: 0.24s;}
#tm:checked ~ .sidenav li:nth-child(4) b {transition-delay: 0.32s;}
#tm:checked ~ .sidenav li:nth-child(5) b {transition-delay: 0.40s;}
#tm:checked ~ .sidenav li:nth-child(6) b {transition-delay: 0.48s;}

  visibility: hidden;

    color: salmon;
    color: $textPrimaryColor;
  color: $secondaryTextColor;
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

  ga('create', 'UA-61157304-1', 'auto');
  ga('send', 'pageview');
var d = new Date();
if(d.getMonth() == 4 && d.getDate() == 31) {
   $("#fbm").css("visibility", 'visible');
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.