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

              
                <div class="share">
	<a href="#">Share</a>
	<div>
		<ul>
			<li><a href="#">google+</a></li>
			<li><a href="#">facebook</a></li>
			<li><a href="#">twitter</a></li>
		</ul>
	</div>
</div>

<div class="share orange">
	<a href="#">Share</a>
	<div>
		<ul>
			<li><a href="#">google+</a></li>
			<li><a href="#">facebook</a></li>
			<li><a href="#">twitter</a></li>
		</ul>
	</div>
</div>

<div class="share yellow">
	<a href="#">Share</a>
	<div>
		<ul>
			<li><a href="#">google+</a></li>
			<li><a href="#">facebook</a></li>
			<li><a href="#">twitter</a></li>
		</ul>
	</div>
</div>

<div class="share black">
	<a href="#">Share</a>
	<div>
		<ul>
			<li><a href="#">google+</a></li>
			<li><a href="#">facebook</a></li>
			<li><a href="#">twitter</a></li>
		</ul>
	</div>
</div>

              
            
!

CSS

              
                body {
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-style: normal;
	font-variant: normal;
	font-weight: 300;
	margin: 15px;
	color: #373737;
}

p {
	margin: 2em 0 1em;
	line-height: 24px;
}

.share {
	position: relative;
	display: inline-block;
}

.share a {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 13px;
	text-decoration: none;
	text-align: center;
	padding: 5px 0;
}

.share > a {
	display: inline-block;
	width: 100px;
	z-index: 1;
	font-weight: bold;
	color: #616267;
	border: 1px solid #8F8F8F;
	border-radius: 3px;
	background: #fff;
	background-image: -webkit-linear-gradient(top, #FAFBFD, #F6F7FC);
	background-image: -moz-linear-gradient(top, #FAFBFD, #F6F7FC);
}

.share > a:hover {
	background: #eee;
	background-image: -webkit-linear-gradient(top, #F4F7FC, #FAFBFF);
	background-image: -moz-linear-gradient(top, #F4F7FC, #FAFBFF);
}

.share div {
	position: absolute;
	width: 100px;
	height: 8px;
	overflow: hidden;
	left: 2px;
	top: 28px;
	-webkit-transition: all 150ms linear;
	-moz-transition: all 150ms linear;
	-o-transition: all 150ms linear;
	transition: all 150ms linear;
}

.share:hover div {
	height: 94px;
	/*
	 * 26px (height of <li>) times the number of <li>s, plus 16px for grippy
	 */
}

.share ul {
	position: absolute;
	bottom: 5px;
	left: 0;
	width: 96px;
	background: #56A0F9;
	background-image: -webkit-linear-gradient(top, rgba(0,0,0,0.15), transparent);
	margin: 0;
	padding: 2px 0 9px;
	border-radius: 0 0 3px 3px;
	border: 1px solid rgba(0,0,0,0.25);
	border-width: 0 1px 1px;
	box-shadow: 0 -1px 0 rgba(255,255,255,0.5) inset;
	z-index: 9999;
}

.share ul::before {
	content: '.';
	text-indent: -9999px;
	display: block;
	background: #56A0F9;
	width: 15px;
	height: 15px;
	position: absolute;
	bottom: -4px;
	left: 38px;
	border-radius: 15px;
	box-shadow:
		0 -1px 0 rgba(255,255,255,0.5) inset,
		0 1px 0 #666;
	z-index: 0;
}

.share ul::after {
	content: '.';
	text-indent: -9999px;
	display: block;
	background: #fff;
	width: 5px;
	height: 5px;
	position: absolute;
	bottom: -2px;
	left: 42px;
	border-radius: 15px;
	border: 1px solid #666;
	box-shadow: 0 -1px 0 rgba(255,255,255,0.5);
	z-index: 0;
}

.share.orange ul {
	background: #FF8100;
}

.share.orange ul::before {
	background: #FF8100;
}

.share.yellow ul {
	background: #B4E12C;
}
.share.yellow ul::before {
	background: #B4E12C;
}

.share.black ul {
	background: #2C2D32;
}
.share.black ul::before {
	background: #2C2D32;
}

.share:hover ul {
	bottom: none;
}

.share ul li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.share ul li a {
	display: block;
	color: #fff;
	text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

.share ul li a:hover {
	text-decoration: underline;
}

              
            
!

JS

              
                
              
            
!
999px

Console