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

+ 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

              
                <div class="gooey">
  <fieldset class="menu">
    <input type='radio' id='mi0' name='menu'><label for='mi0' class="item n0">Item 1</label><i class="icon n0 fa fa-home fa-2x"></i>
    <input type='radio' id='mi1' name='menu'><label for='mi1' class="item n1">Item 2</label><i class="icon n1 fa fa-home fa-2x"></i>
    <input type='radio' id='mi2' name='menu'><label for='mi2' class="item n2">Item 3</label><i class="icon n2 fa fa-home fa-2x"></i>
    <input type='radio' id='mi3' name='menu'><label for='mi3' class="item n3">Item 4</label><i class="icon n3 fa fa-home fa-2x"></i>
    <input type='radio' id='mi4' name='menu'><label for='mi4' class="item n4">Item 4</label><i class="icon n4 fa fa-home fa-2x"></i>
    <input type='radio' id='mi5' name='menu'><label for='mi5' class="item n5">Item 4</label><i class="icon n5 fa fa-home fa-2x"></i>
    <input type='radio' id='mi6' name='menu'><label for='mi6' class="item n6">Item 4</label><i class="icon n6 fa fa-home fa-2x"></i>
    <input type='radio' id='mi7' name='menu'><label for='mi7' class="item n7">Item 4</label><i class="icon n7 fa fa-home fa-2x"></i>
    <input type='radio' id='mi8' name='menu'><label for='mi8' class="item n8">Item 4</label><i class="icon n8 fa fa-home fa-2x"></i>
    <input type='radio' id='mi9' name='menu'><label for='mi9' class="item n9">Item 4</label><i class="icon n9 fa fa-home fa-2x"></i>
    <div class="mask n0">test</div>
  </fieldset>
</div>


<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
  <defs>
    <filter id="fancy-goo">
      <!-- stdDeviation = Border Radius Wanted -->
      <feGaussianBlur in="SourceGraphic" stdDeviation="3" result="blur" />
      <!-- Matrix Alpha/Alpha = stdDeviation * 2 -->
      <!-- Matrix Additionnal = stdDeviation -->
      <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 6 -3" result="goo" />
      <feComposite in="SourceGraphic" in2="goo" operator="atop"/>
    </filter>
  </defs>
</svg>
              
            
!

CSS

              
                @import "compass/css3";

body {
  background-image:url(https://i.imgur.com/d47ZIU3.jpg);
  background-size:cover;
}
.gooey {
  position:absolute;
  top:0;
  left:0;
  bottom:0;
  right:0;
  width:1000px;
  height:500px;
  margin:auto;
  filter: url('#fancy-goo');
  overflow:hidden;
}
.menu {
  width:100%;
  height:100%;
}
.gooey * {
  position: absolute;
  transition: all 1s;
  display: inline-block;
  border: none;
  margin: 0;
  padding: 0;
}
.menu input[type='radio'] {
	display: none;
}
.menu > .item {
  background:hsla(0,0%,50%,1);  
  height:44px;
  line-height:44px;
  width:500px;
  right: 50px;
  cursor: pointer;
  text-align: right;
}
.menu input[type='radio'] + .item:hover {
  background:hsla(0,0%,25%,1); 
}
.menu input[type='radio']:checked + .item {
  width:1000px;
}
.menu > .icon {
  background:hsl(5,75%,75%);
  right:0px;
  height:44px;
  width:44px;
  cursor: pointer;
  text-align:center;
  vertical-align:middle;
  line-height:44px;
}
.menu > .n0 { top:5px; }
.menu > .n1 { top:55px; }
.menu > .n2 { top:105px; }
.menu > .n3 { top:155px; }
.menu > .n4 { top:205px; }
.menu > .n5 { top:255px; }
.menu > .n6 { top:305px; }
.menu > .n7 { top:355px; }
.menu > .n8 { top:405px; }
.menu > .n9 { top:455px; }
.menu > .mask {
 top:-125px;
width:750px;
height:750px;
border-radius:100%;
background-color: white;
}

              
            
!

JS

              
                
              
            
!
999px

Console