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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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="case">
		<div class="electric-piano">
			
			<div class="top"></div>
			
			<hr />
			
			<div class="branding">
				<h1>Electrik Piano</h1>
				<h2><abbr title="Native Instruments"><span>N</span><span>I</span></abbr></h2>
			</div>
			
			<hr />
			
			<div class="control-panel">
				
				<div class="panel effects">
					
					<ul class="knobs">
						<li><i></i><p>Low EQ</p></li>
						<li><i></i><p>High EQ</p></li>
						<li><i></i><p>Trem</p></li>
						<li><i></i><p>Reverb</p></li>
					</ul>
					
				</div>
				
				<div class="panel presets">
					
					<div class="display">
						
						<input type="text" name="preset-number" value="4 - E7" />
						<hr />
						<input type="text" name="preset-name" value="Space Miner" />
						
					</div>
					
					<ul class="buttons">
						<li class="big">File</li>
						<li class="small">-</li>
						<li class="small">+</li>
						<li class="big">Options</li>
					</ul>
					
				</div>
				
				<div class="panel metrics">
				
					<ul class="knobs">
						<li><i></i><p>Tune</p></li>
						<li><i></i><p>Pan</p></li>
						<li><i></i><p>Volume</p></li>
						<li><i></i><p>Meter</p></li>
					</ul>
					
				</div>
				
			</div>
			
			<hr />
			
			<div class="midi-control">
				<ul>
					<li>Midi Ch. <input type="text" name="midi-chanel" value="0" /></li>
					<li>Voices <input type="text" name="voices-1" value="6" /> / <input type="text" name="voices-2" value="72" /></li>
				</ul>
				
				<ul class="favorites">
					<li class="active">F1</li>
					<li class="selected">F2</li>
					<li class="selected">F3</li>
					<li class="default">F4</li>
					<li class="default">F5</li>
					<li class="default">F6</li>
					<li class="default">F7</li>
					<li class="default">F8</li>
				</ul>
				
				<ul>
					<li class="dfd">DFD</li>
					<li>Memory <input type="text" name="memory" value="64" /> MB</li>
					<li>CPU <input type="text" name="cpu" value="9" /> %</li>
				</ul>
				
			</div>
			
			<hr />
			
			<div class="keyboard">
			
				<ul class="keys octave1">
					<li>e</li>
					<li>f</li>
					<li>f<sup>&#9839;</sup> g<sup>&#9837;</sup></li>
					<li>g</li>
					<li>g<sup>&#9839;</sup> a<sup>&#9837;</sup></li>
					<li>a</li>
					<li>a<sup>&#9839;</sup> b<sup>&#9837;</sup></li>
					<li>b</li>
					<li>c</li>
					<li>c<sup>&#9839;</sup> d<sup>&#9837;</sup></li>
					<li>d</li>
					<li>d<sup>&#9839;</sup> e<sup>&#9837;</sup></li>
				</ul>
				
				<ul class="keys octave2">
					<li>e</li>
					<li>f</li>
					<li>f<sup>&#9839;</sup> g<sup>&#9837;</sup></li>
					<li>g</li>
					<li>g<sup>&#9839;</sup> a<sup>&#9837;</sup></li>
					<li>a</li>
					<li>a<sup>&#9839;</sup> b<sup>&#9837;</sup></li>
					<li>b</li>
					<li>c</li>
					<li>c<sup>&#9839;</sup> d<sup>&#9837;</sup></li>
					<li>d</li>
					<li>d<sup>&#9839;</sup> e<sup>&#9837;</sup></li>
				</ul>
				
				<ul class="keys octave3">
					<li>e</li>
					<li>f</li>
					<li>f<sup>&#9839;</sup> g<sup>&#9837;</sup></li>
					<li>g</li>
					<li>g<sup>&#9839;</sup> a<sup>&#9837;</sup></li>
					<li>a</li>
					<li>a<sup>&#9839;</sup> b<sup>&#9837;</sup></li>
					<li>b</li>
					<li>c</li>
					<li>c<sup>&#9839;</sup> d<sup>&#9837;</sup></li>
					<li>d</li>
					<li>d<sup>&#9839;</sup> e<sup>&#9837;</sup></li>
				</ul>
				
				<ul class="keys octave4">
					<li>e</li>
					<li>f</li>
					<li>f<sup>&#9839;</sup> g<sup>&#9837;</sup></li>
					<li>g</li>
					<li>g<sup>&#9839;</sup> a<sup>&#9837;</sup></li>
					<li>a</li>
					<li>a<sup>&#9839;</sup> b<sup>&#9837;</sup></li>
					<li>b</li>
					<li>c</li>
					<li>c<sup>&#9839;</sup> d<sup>&#9837;</sup></li>
					<li>d</li>
					<li>d<sup>&#9839;</sup> e<sup>&#9837;</sup></li>
				</ul>
				
				<ul class="keys octave5">
					<li>e</li>
					<li>f</li>
					<li>f<sup>&#9839;</sup> g<sup>&#9837;</sup></li>
					<li>g</li>
					<li>g<sup>&#9839;</sup> a<sup>&#9837;</sup></li>
					<li>a</li>
					<li>a<sup>&#9839;</sup> b<sup>&#9837;</sup></li>
					<li>b</li>
					<li>c</li>
					<li>c<sup>&#9839;</sup> d<sup>&#9837;</sup></li>
					<li>d</li>
					<li>d<sup>&#9839;</sup> e<sup>&#9837;</sup></li>
				</ul>
				
				<ul class="keys octave6">
					<li>e</li>
					<!--<li>f</li>
					<li>f<sup>&#9839;</sup> g<sup>&#9837;</sup></li>
					<li>g</li>
					<li>g<sup>&#9839;</sup> a<sup>&#9837;</sup></li>
					<li>a</li>
					<li>a<sup>&#9839;</sup> b<sup>&#9837;</sup></li>
					<li>b</li>
					<li>c</li>
					<li>c<sup>&#9839;</sup> d<sup>&#9837;</sup></li>
					<li>d</li>
					<li>d<sup>&#9839;</sup> e<sup>&#9837;</sup></li>-->
				</ul>
							
			</div><!-- / keyboard -->
			
		</div><!-- / electric piano -->
	</div><!-- / case -->
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Great+Vibes);

* { margin: 0; padding: 0; }
a { text-decoration: none; }
ul, ol { list-style: none; }
body {
  padding: 20px;
	font: 1em/1.5 sans-serif;
	background: #1e1e1e;
}

hr {
	position: relative;
	border: none;
	display: block;
	height: 1px;
	background: #818285;
	border-top: 2px solid #fff;
	border-bottom: 1px solid #b5bdb5;
}
hr:after {
	content: '';
	position: absolute;
	top: 1px;
	left: 0px;
	height: 2px;
	width: 100%;
	background: #000;
	z-index: 100;
}

.case {
	width: 771px;
	margin: auto;
	padding: 10px;
	border-radius: 6px;
	/*background: url(http://joshfry.net/-/img/noise.png) #333;*/
	background: #222;
	box-shadow: inset 0px 0px 3px #454545, 0px 0px 30px #000;
}

.electric-piano {
	padding: 3px 4px;
	background: #000;
	box-shadow: 0px 0px 6px #454545;
}

.top {
	width: 100%;
	height: 30px;
	background: -webkit-linear-gradient(top,  #252525 0%,#343434 14%,#3d3d3d 24%,#3d3d3d 28%,#343234 59%,#262626 86%,#232323 100%);
}

.branding {
	position: relative;
	width: 100%;
	height: 36px;
	background: -webkit-linear-gradient(left,  #2d2d2d 0%,#2d2d2d 20%,#3a3a3a 42%,#3e3d3d 51%,#2d2d2d 80%,#2d2d2d 100%);
}

h1 {
	position: absolute;
	top: 1px;
	left: 18px;
	color: #fff;
	text-shadow: 1px 2px 2px #000, -1px -2px 2px #888;
	letter-spacing: 1px;
	font: italic 100 1.75em/1.5 'Great Vibes', sans-serif;
}

h2 {
	position: absolute;
	top: 5px;
	right: 18px;
	font-size: 1em;
}
h2 span {
	display: inline-block;
	width: 20px;
	text-align: center;
}
h2 span:nth-child(1) {
	color: #000;
	background: #fff;
	-webkit-transform: skew(0deg, -10deg);
}
h2 span:nth-child(2) {
	color: #fff;
	background: #1b526a;
	-webkit-transform: skew(0deg, 10deg);
}

.control-panel {
	text-align: center;
	overflow: hidden;
	background: -webkit-linear-gradient(top,  #818285 0%,#efefef 13%,#c6c6c6 25%,#424242 38%,#bdbdbd 50%,#d6d6d6 63%,#7b7b7b 75%,#ebe7eb 88%,#c6c6c6 100%);
  background-size: 1px 8px;
}

.panel {
	float: left;
	width: 250px;
	height: 70px;
	margin: 10px 5px;
	background: #a5a59c;
	border: 1px solid #444;
	border-radius: 8px;
	box-shadow: 0px 1px 5px #000;
	background: -webkit-linear-gradient(top,  #c0c0c0 0%,#a5a5a5 100%);
}
.panel.presets {
	width: 215px;
}

.knobs li {
	display: inline-block;
	position: relative;
	width: 20px;
	height: 20px;
	margin: 10px;
	margin-bottom: 0;
	padding: 8px;
	border: 1px solid #333;
	border-radius: 50px;
	background: -webkit-linear-gradient(top,  #ffffff 0%,#7b7b7b 100%);
}
.knobs li p {
	position: absolute;
	width: 50px;
	left: -6px;
	bottom: -21px;
	text-transform: uppercase;
	font-size: .65em;
	text-shadow: 0px 1px 2px #ddd;
}
.knobs li i {
	position: absolute;
	top: -3px;
	left: 13px;
	width: 0px;
	height: 0px;
	border: 5px solid rgba(0, 0, 0, 0);
	border-bottom-color: rgba(0, 0, 0, 1);
}
.knobs li i:before {
	content: '';
	position: absolute;
	top: 4px;
	left: -12px;
	width: 20px;
	height: 20px;
	border: 2px solid #000;
	border-radius: 50px;
	box-shadow: 2px 3px 10px #000;
	background-image:	-webkit-radial-gradient(  50%   0%,  8% 50%, hsla(0,0%,100%,.5) 0%, hsla(0,0%,100%,0) 100%),
						-webkit-radial-gradient(  50% 100%, 12% 50%, hsla(0,0%,100%,.6) 0%, hsla(0,0%,100%,0) 100%),
						-webkit-radial-gradient(   0%  50%, 50%  7%, hsla(0,0%,100%,.5) 0%, hsla(0,0%,100%,0) 100%),
						-webkit-radial-gradient( 100%  50%, 50%  5%, hsla(0,0%,100%,.5) 0%, hsla(0,0%,100%,0) 100%),
						-webkit-repeating-radial-gradient(	50% 50%, 100% 100%, hsla(0,0%,  0%,0) 0%, hsla(0,0%,  0%,0)   3%, hsla(0,0%,  0%,.1) 3.5%),
						-webkit-repeating-radial-gradient(	50% 50%, 100% 100%, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,0)   6%, hsla(0,0%,100%,.1) 7.5%),
						-webkit-repeating-radial-gradient(	50% 50%, 100% 100%, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,0) 1.2%, hsla(0,0%,100%,.2) 2.2%),
						-webkit-radial-gradient(	50% 50%, 200% 50%, hsla(0,0%,90%,1) 5%, hsla(0,0%,85%,1) 30%, hsla(0,0%,60%,1) 100%);					
}

.buttons li {
	width: 20px;
	height: 20px;
	background: #fff;
	border: 1px solid #333;
}

.midi-control {
	overflow: hidden;
	padding: 2px 0px 2px 10px;
	background: #333;
}
.midi-control ul {
	overflow: hidden;
	float: left;
}
.midi-control ul:last-child {
	float: right;
}
.midi-control li {
	float: left;
	margin-right: 10px;
	text-transform: uppercase;
	font-size: .65em;
	color: #eee;
	text-shadow: 0 1px 1px #000;
}
.midi-control input {
	width: 23px;
	height: 12px;
	padding: 1px 2px;
	text-align: right;
	color: #fcbd4f;
	background: #000;
	border: none;
	border-right: 1px solid #555;
	border-bottom: 1px solid #555;
}
.midi-control .favorites {
	padding: 0 70px 0 78px;
}
.midi-control .favorites li {
	width: 14px;
	height: 10px;
	margin-right: 0;
	padding: 0px 3px 3px 3px;
	text-align: center;
	text-shadow: 0 1px 1px rgba(255,255,255,.4);
	color: #000;
	border: 1px solid #000;
	box-shadow: inset 0px 1px rgba(255,255,255,.3);
}
.midi-control .favorites li.active {
	background: -webkit-linear-gradient(top,  #fcbd4f 0%,#f1d489 68%,#f1d489 87%,#824e17 100%);
}
.midi-control .favorites li.selected {
	background: -webkit-linear-gradient(top,  #b5ada5 2%,#e5e1d8 54%,#efe7de 86%,#817f79 93%,#635e5a 100%);
}
.midi-control .favorites li.default {
	background: -webkit-linear-gradient(top,  #7b7b73 1%,#ada59c 86%,#565252 93%,#3c3f3c 100%);
}
.midi-control .dfd {
	position: relative;
	top: 0;
	margin-right: 25px;
}
.midi-control .dfd:after {
	content: '';
	position: absolute;
  top: 2px;
	margin: 0 5px;
	width: 10px;
	height: 10px;
	border-radius: 20px;
	border-bottom: 1px solid #555;
	box-shadow: 0px 1px 2px rgba(255,255,255,.4);
	background: -webkit-radial-gradient(center, ellipse cover,  #ecc621 0%,#ecc621 37%,#a07b23 69%,#5a4a21 100%);
}

.panel.presets {
	border: none;
	border-radius: 0;
	box-shadow: none;
	background: none;
}

.display {
	height: 38px;
	padding: 2px 10px 0;
	text-align: left;
	border: 1px solid #000;
	box-shadow: inset 0px 0px 10px 2px #847246, inset 0px 0px 1px 1px #fff, 0px 0px 1px 1px rgba(0,0,0,.4);
	background: -webkit-linear-gradient(left,  #b69d61 0%,#dab563 50%,#b69d61 100%);
}

.display hr {
	height: 0px;
	border-top:  1px solid #824e17;
	border-bottom: 1px solid #d6ad63;
}
.display hr:after {
	display: none;
}

.display input {
	background: none;
	border: none;
	color: #522100;
	display: block;
	line-height: 1.5;
}
.display input:focus {
	outline: none;
	color: #824e17;
	text-shadow: 0 1px 0px #d6ad63;
}

.buttons li {
	float: left;
	height: 12px;
	margin: 8px 0 0 0;
	padding: 3px 0 5px 0;
	border: 1px solid #000;
	font-size: .65em;
	text-transform: uppercase;
	background-size: 1px 20px;
	box-shadow: inset 0px 1px 0px #d7d7d7;
	background: -webkit-linear-gradient(top,  #bdbdad 0%,#c8c3b5 14%,#f7f7e7 83%,#efe7de 89%,#817f79 93%,#635e5a 100%);
}
.buttons li.small {
	width: 30px;
}
.buttons li.big {
	width: 73px;
}

.keyboard {
	padding: 3px 15px 1px;
	background: -webkit-linear-gradient(top,  #333333 0%,#000000 100%);
}

.keys {
	text-align: center;
	display: inline;
}
.keys li {
	display: inline-block;
	width: 18px;
	height: 110px;
	margin-left: -2px;
	text-indent: -9999px;
	border-radius: 2px;
	background: #eee;
	box-shadow: inset 0px 4px 5px #555;
}
.keys li:nth-child(3), 
.keys li:nth-child(5), 
.keys li:nth-child(7), 
.keys li:nth-child(10), 
.keys li:nth-child(12) {
	position: absolute;
	width: 14px;
	height: 70px;
	margin-left: -10px;
	background: #000;
}

.header {
	width: 800px;
	margin: auto;
	padding: 2em;
	font-size: .75em;
	line-height: 1;
	color: #999;
}
.header a {
	color: #D7B362;
}
.header a:hover {
	color: #fff;
}
.header .title {
	color: #2875AD;
	font-weight: bold;
	font-size: 1.2em;
	margin-bottom: .5em;
}
.header span {
	display: inline-block;
	padding: 0 .5em;
}

              
            
!

JS

              
                
              
            
!
999px

Console