octocatstartv

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.

            
                <div id="header"> 
<div class="navigation">
    <ul>
		<li class="home">
			<a href="#home" class="a-nav">
				<span><img src="https://dl.dropbox.com/u/66278364/home.png"></span>
				<span>Home</span>
			</a>
		</li>
		<li class="work">
			<a href="#work" class="a-nav">
				<span><img src="https://dl.dropbox.com/u/66278364/home.png"></span>
				<span>Work</span>
			</a>
		</li>
		<li class="about">
			<a href="#about" class="a-nav">
				<span><img src="https://dl.dropbox.com/u/66278364/home.png"></span>
				<span>About</span>
			</a>
		</li>
		<li class="home">
			<a href="#home" class="a-nav">
				<span><img src="https://dl.dropbox.com/u/66278364/home.png"></span>
				<span>Home</span>
			</a>
		</li>
	</ul>
</div>
  </div>
            
          
!
            
              /* CSS Reset */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,
acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,
sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,
tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,
header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
	display: block;
}
body {
	line-height: 1;
}
ol,ul {
	list-style: none;
}
blockquote,q {
	quotes: none;
}
blockquote:before,blockquote:after,q:before,q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
a {
	margin: 0;
	padding: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
	text-decoration: none;
}
img {
	border: none;
}
hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #cccccc;
	margin: 1em 0;
	padding: 0;
}
/* End of reset */

*, ::after, ::before {
	box-sizing: border-box; *behavior: url(scripts/boxsizing.htc);
	-o-box-sizing: border-box;
	-ms-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}

#header {
	background: #bada55;
	width: 100%;
	padding: 20px 0;
}

.navigation ul {
  text-align: center;
  font-size: 0;
}

.navigation ul li {
  display: inline-block;
}

.a-nav {
	width: 100px;
	height: 100px;
	margin: 0px 10px;
	border-radius: 50%;
	display: block;
	position: relative;

	-webkit-transition: all .2s linear;
	-moz-transition: all .2s linear;
	-o-transition: all .2s linear;
	-ms-transition: all .2s linear;
	transition: all .2s linear;
}

.a-nav span {
	width: 100px;
	height: 100px;

	-webkit-transition: all 0.3s linear;
	-moz-transition: all 0.3s linear;
	-o-transition: all 0.3s linear;
	-ms-transition: all 0.3s linear;
	transition: all 0.3s linear;
}

.a-nav span:nth-child(1) {
	position: absolute;
	top: 0px;
	left: 0px;
	padding-top: 34px;

	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=100);
	opacity: 1;
}

.a-nav span:nth-child(2) {
	position: absolute;
	top: 0px;
	left: 0px;
	padding-top: 40px;
	font-size: 20px;
	line-height: 20px;
	color: #fff;
	text-transform: none;
	font-family: 'Lato';
	font-weight: 300;
	text-shadow: 1px 1px 10px #000;

	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	opacity: 0;
}

.home .a-nav {
	background: rgba(255,255,255,1);  /**box-shadow:  0 0 0 0 rgba(200, 95, 66, 0.4) inset, 0 0 0 2px rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.1);**/
	  
}

.home .a-nav:hover {
	background: rgba(255,255,255,0.5); /** box-shadow:  0 0 0 0 rgba(200, 95, 66, 0.4) inset, 0 0 0 2px rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.1);**/
}

.work .a-nav {
	background: rgba(213,3,67,1);
}

.work .a-nav:hover {
	background: rgba(213,3,67,0.75);
}

.about .a-nav {
	background: rgba(234,184,1,1);
}

.about .a-nav:hover {
	background: rgba(234,184,1,0.75);
}

.services .a-nav {
	background: rgba(0,165,226,1);
}

.services .a-nav:hover {
	background: rgba(0,165,226,0.75);
}

.contact .a-nav:hover {
	background: rgba(100,0,224,1);
}

.contact .a-nav:hover {
	background: rgba(100,0,224,0.75);
}

.a-nav:hover span:nth-child(2) {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter: alpha(opacity=100);
	opacity: 1;
}

.a-nav:hover span:nth-child(1) {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	opacity: 0;

	-webkit-transform: scale(0);
	-moz-transform: scale(0);
	-o-transform: scale(0);
	-ms-transform: scale(0);
	transform: scale(0);
}

.a-nav:active {
	-webkit-box-shadow: 0 0 5px 4px rgba(0,0,0,0.2) inset,0 0 0 8px #fff inset,0 0 5px 10px rgba(0,0,0,0.2) inset,0 0 0 6px #fff,0 2px 8px 8px rgba(0,0,0,0.2);
	box-shadow: 0 0 5px 4px rgba(0,0,0,0.2) inset,0 0 0 8px #fff inset,0 0 5px 10px rgba(0,0,0,0.2) inset,0 0 0 6px #fff,0 2px 8px 8px rgba(0,0,0,0.2);
	/*box-shadow: inner shadow,inner white ring,inner inner shadow,outer white ring,outer shadow*/
}
            
          
!
999px
Close

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.

Go PRO

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

Console