cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

		<li><a data-title="Home" href="#">Home</a></li>
		<li><a data-title="Music" href="#">About</a></li>
		<li><a data-title="Photos" href="#">Clients</a></li>
		<li><a data-title="Search" href="#">Contact Us</a></li>
              body {
  background: #fff0e0;
nav {
  transform: perspective(500px)
             translate(0px, 100px);
  transform-origin: 0 0;
nav ul {
  list-style: none;
  padding: 0;
  width: 48px
nav li {
  margin-bottom: -1px;
nav a {
  background-color: #f6f6f6;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  border: 1px solid #bbb;
  box-shadow: 0 1px 0 #bbb,
              -1px 0 0 #bbb,
              -1px 2px 0 #bbb,
              -2px 2px 0 #bbb,
              -16px 24px 16px hsla(0,0%,0%,.15);
  cursor: pointer;
  display: block;
  height: 32px;
  padding: 8px;
  position: relative;
  text-indent: -9999px;
  width: 32px;
nav li:first-child a {
  border-radius: 4px 4px 0 0;
nav li:last-child a {
  border-radius: 0 0 4px 4px;
nav a:hover,
nav a:focus {
  background-color: #fff;
nav a:active {
  right: 2px;
  top: 4px;
nav a[data-title="Home"] {
  background-image: url('http://png-5.findicons.com/files//icons/1389/g5_system/32/toolbar_home.png');
nav a[data-title="Music"] {
  background-image: url('http://png-4.findicons.com/files//icons/1389/g5_system/32/toolbar_music.png');
nav a[data-title="Photos"] {
  background-image: url('http://png-1.findicons.com/files//icons/1389/g5_system/32/toolbar_pictures.png');
nav a[data-title="Search"] {
  background-image: url('http://png-3.findicons.com/files//icons/1389/g5_system/32/toolbar_find.png');
nav a:after {
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 4px;
  box-shadow: 0 1px 0 #bbb,
              -1px 0 0 #bbb,
              -1px 2px 0 #bbb,
              -2px 2px 0 #bbb,
              -16px 24px 16px hsla(0,0%,0%,.15);
  color: #999;
  content: attr(data-title);
  display: none;
  left: 60px;
  line-height: 48px;
  padding: 0 12px;
  position: absolute;
  text-indent: 0;
  top: 0;
  z-index: -1;
nav a:before {
  border-bottom: 8px solid transparent;
  border-right: 8px solid #f6f6f6;
  border-top: 8px solid transparent;
  content: '';
  display: none;
  height: 0;
  left: 53px;
  position: absolute;
  top: 16px;
  width: 0;
  -webkit-filter: drop-shadow(0 1px 0 #bbb)
                  drop-shadow(-1px 0 0 #bbb)
                  drop-shadow(-1px 1px 0 #bbb);
nav a:hover:after,
nav a:focus:after,
nav a:hover:before,
nav a:focus:before {
  display: block;
nav a:active:after {
  left: 62px;
  top: -4px;
nav a:active:before {
  left: 55px;
  top: 12px;
              // Inspired by: http://drbl.in/eySR

// Currently webkit only due to the use of filters

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................