Pen Settings

HTML

CSS

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

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

Auto Save

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

              
                <!-- Original pen (https://codepen.io/aardrian/full/vFKuq ~July 2012) lost by CodePen, this is a recreation with their assistance to get the old code. -->
<nav role="navigation">
  <h1 onclick = "void(0);">Menu</h1>
  <ol>
    <li><a href="#">Bio</a>
      <ol onclick = "void(0);">
        <li><a href="#">Bio One</a></li>
        <li><a href="#">Bio Two</a></li>
        <li><a href="#">Bio 3</a></li>
      </ol>
    </li>
    <li><a href="#">Blog</a></li>
    <li><a href="#">Books</a></li>
    <li><a href="#">Articles</a></li>
    <li><a href="#">Contact</a></li>
   </ol>
</nav>
<!--
The onclick attributes are to allow Safari on iOS to see these otherwise non-clickable elements as clickable so it can then apply the hover styles as if they were clicks.
-->

              
            
!

CSS

              
                .html {
  background-color: #6D695C;
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAACVBMVEUAAAAAAAAAAACDY+nAAAAAA3RSTlMmDQBzGIDBAAAAG0lEQVR42uXIIQEAAADCMHj/0NdkQMws0HEeAqvwAUGJthrXAAAAAElFTkSuQmCC); }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
	/*font-size: 2.5em;*/ }

nav {
	width: 5em;
  height: 8em;
	float: right;
  padding: 0;
  overflow: hidden; }

nav:hover {
  background-color: rgba(0, 0, 0, 0.4);
	width: 16em;
	height: 15em;
	border-radius: 0 0 0 15em; }

nav h1 {
  position: relative;
  top: -.75em;
	right: -.5em;
  margin: 0;
	background-color: #000;
	color: #000;
	z-index: 1;
  font-size: 2em;
  line-height: 100%;
  width: 1em;
  padding: 1em .5em 1.25em 1em;
  border-radius: 3.0em 0 0 3.0em;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  overflow: hidden; }

nav h1::before {
  content: "\AB";/*&#171; «*/
  /*content: "\21D0";*//*&#8656; ⇐*/
	color: #fff;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg); }

nav:hover h1 {
  display: none; }

nav ol {
  margin: 0;
	padding: 0;
	list-style-type: none; }

a {
  display: block;
	position: absolute;
	top: -10em;
	right: 0em;
  border-radius: 4em;
	border: .15em solid #fff;
	padding: 1.5em 0;
  width: 4.5em;
	text-align: center;
	box-shadow: .45em 0 1.5em rgba(50, 50, 50, 0.75);
  -webkit-transition: all 0.2s ease-in;
	-moz-transition: all 0.2s ease-in;
  -ms-transition: all 0.2s ease-in;
	-o-transition: all 0.2s ease-in;
	transition: all 0.2s ease-in; }

nav:hover a {
  /*display: block;*/ }

a:link, a:hover, a:focus, a:active, a:visited {
  text-decoration: none;
	color: #ddd;
	background-color: #000; }

a:hover, a:focus, a:active {
  background-color: #222;
  color: #fff;
	text-shadow: 0em 0em 0.2em rgba(255, 255, 255, 0.8);}

nav:hover>ol>li:nth-child(1) a {
	right: 13.5em;
  top: .2em;
	z-index: 5;}

nav:hover>ol>li:nth-child(2) a {
	right: 12em;
  top: 4.75em; }

nav:hover>ol>li:nth-child(3) a {
	right: 9.0em;
  top: 8.5em; }

nav:hover>ol>li:nth-child(4) a {
	right: 4.75em;
  top: 11em; }

nav:hover>ol>li:nth-child(5) a {
	right: 0;
  top: 12em; }

/* First sub-menu */
nav ol li:nth-child(1):hover ol {
	/*-webkit-transition: all 0.2s ease-in;
	-moz-transition: all 0.2s ease-in;
  -ms-transition: all 0.2s ease-in;
	-o-transition: all 0.2s ease-in;
	transition: all 0.2s ease-in;*/
}

nav ol li:nth-child(1) ol {
  /*border: 2px solid #f00;*/
  background-color: rgba(0, 0, 0, 0.6);
	width: 0;
	height: 0;
	display: block;
  position: absolute;
	top: -5em;
	right: 8.5em;
	z-index: 1;
	border-radius: 15em; }

nav ol li:nth-child(1):hover ol {
  width: 15em;
	height: 15em;
  top: -5em;
	right: 8.5em;
	z-index: 5; }

nav:hover ol li:nth-child(1) ol li a {
  z-index: 3;
	border-color: orange;
	top: 5.2em;
	right: 5em; }

nav:hover ol li:nth-child(1) a:hover li:nth-child(1) a, nav:hover ol li:nth-child(1) ol:hover li:nth-child(1) a {
	right: 10em;
  top: 5.2em; }

nav:hover ol li:nth-child(1) a:hover li:nth-child(2) a, nav:hover ol li:nth-child(1) ol:hover li:nth-child(2) a {
	right: 7.5em;
  top: 9.5em; }

nav:hover ol li:nth-child(1) a:hover li:nth-child(3) a, nav:hover ol li:nth-child(1) ol:hover li:nth-child(3) a {
	right: 2.5em;
  top: 9.5em; }


              
            
!

JS

              
                
              
            
!
999px

Console