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

              
                <html lang="en" class="no-js">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
		<meta name="viewport" content="width=device-width, initial-scale=1.0"> 
		<link href='https://fonts.googleapis.com/css?family=Fauna+One' rel='stylesheet' type='text/css'>
      <link rel="stylesheet" type="text/css" href="http://artsmc.net/codepen/dribbble/personalsite/css/font-awesome.css" />		
		<!--[if IE 7]><link rel="stylesheet" href="path/to/font-awesome/css/font-awesome-ie7.min.css"><![endif]-->
		<title>Dribbble Rebound</title>
	</head>
	<body>
<div class="container">
	<div class="bg">
		<nav class="wrapper">
			<div class="holder">
				<ul class="ps-menu">
					<li><a class="icon-th-large icon-2x">User Interfaces</a></li>
					<li><a class="icon-list-alt icon-2x">Blog</a></li>
					<li><a class="icon-wrench icon-2x">Concepts</a></li>
					<li><a class="icon-camera icon-2x">Digital Photography</a></li>
					<li><a class="icon-screenshot icon-2x">Responsive</a></li>
				</ul>
			</div><!-- holder-->
		</nav>
	</div><!--bg-->
</div><!-- /container -->

	</body>
</html>
              
            
!

CSS

              
                //Rules
.bg-opac(@r:0,@g:0,@b:0,@alpha:0.25){
background: rgb(@r, @g, @b); /* The Fallback */
background: rgba(@r, @g, @b, @alpha);    
}
.box-sizing (@type: border-box) {
-webkit-box-sizing: @type;
-moz-box-sizing:    @type;
box-sizing:         @type;
}
.drop-shadow (@x: 0, @y: 1px, @blur: 2px, @spread: 0, @alpha: 0.25) {
-webkit-box-shadow:    @x @y @blur @spread rgba(235, 235, 235, @alpha);
-moz-box-shadow:	@x @y @blur @spread rgba(235, 235, 235, @alpha);
box-shadow:		@x @y @blur @spread rgba(235, 235, 235, @alpha);
}
.transition (@transition) {
-webkit-transition: @transition;  
-moz-transition:    @transition;
-ms-transition:     @transition; 
-o-transition:      @transition;  
}
.background-size(@size){
-webkit-background-size: @size;
-moz-background-size: @size;
-o-background-size: @size;
background-size: @size;    
}
body{
min-width:468px;
}
/*The width and height properties include the padding and border, but not the margin. 
This is the box model used by Internet Explorer when the document is in Quirks mode. 
the *selector selects all elements. */
*,*:after,*::before {
.box-sizing();
}
/*General sytle on all elements*/

.ps-menu{
    margin: 0;
    padding: 0;
    color: #fff;
    list-style: none;
    text-transform: none;
    line-height: 60px;
    display:block;
    .drop-shadow (-1px, 0px,0px,0, 0.25);  
     width:100%;
}
.ps-menu li a{
font-size:1.83em;
font-family: 'Fauna One', serif; 
font-weight:normal;
display: block;
color: #fff;
text-decoration: none;
cursor: pointer;
width:400px;
height:95px;
.transition (width 1s); 
}
.ps-menu li{
display: block;
width:75px;
.transition (width 1s); 
.drop-shadow (1px, 0px,0px,0, 0.25);
.bg-opac();
overflow:hidden;
}
.ps-menu li a:hover{
    width:100%;
}
.ps-menu li:hover{
width:100%; 
.bg-opac(50, 191, 216, 0.3);
}
[class*=" icon-"]:before {
font-family: 'FontAwesome';
text-decoration: inherit;
-webkit-font-smoothing: antialiased;
padding:32px 20px;
margin-right:30px;
width:75px;
}
[class*=" icon-"]:hover:before{
background-color:white;
color:#32bfd8;
}
.holder{ margin-left:10%;}
.bg{
display:block;
height:475px;
background: url('http://artsmc.net/codepen/dribbble/personalsite/images/bg.jpg') no-repeat;  
.background-size(cover);
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://artsmc.net/codepen/dribbble/personalsite/images/bg.jpg', sizingMethod='scale');
-ms-filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://artsmc.net/codepen/dribbble/personalsite/bg.jpg', sizingMethod='scale')";
}


              
            
!

JS

              
                
              
            
!
999px

Console