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

              
                <!--
Copypasta from:
http://dabblet.com/gist/3979221/cb69c5e8ccf0745fff2c94b47b27b108931f1a15

NOT MY ORIGINAL WORK

Just experimenting

All credit to original author
-->

<!-- content to be placed inside <body>…</body> -->
<a class='button ctrl' href='#' tabindex='1'>★</a>
<ul class='tip ctrl'>
	<li class='slice'><a href='#'>✦</a></li>
	<li class='slice'><a href='#'>✿</a></li>
	<li class='slice'><a href='#'>✵</a></li>
	<li class='slice'><a href='#'>✪</a></li>
	<li class='slice'><a href='#'>☀</a></li>
</ul>
              
            
!

CSS

              
                /**
 * Circular Tooltip (SO)
 * http://stackoverflow.com/q/13132864/1397351
 */
* {
	margin: 0;
	padding: 0;
}

body {
	overflow: hidden;
	background: url(http://theearlcarlson.com/experiments/amTooltip/img/bg.jpg);
}

/* generic styles for button & circular menu */
.ctrl {
	position: absolute;
	top: 50%;
	left: 50%;
	font: 1.5em/1.13 Verdana, sans-serif;

	-webkit-transition: .5s;
	-moz-transition: .5s;
	-o-transition: .5s;
	-ms-transition: .5s;
	transition: .5s;
}

/* generic link styles */
a.ctrl,.ctrl a {
	display: block;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=56)";
	filter: alpha(opacity=56);
	opacity: .56;
	background: #c9c9c9;
	color: #7a8092;
	text-align: center;
	text-decoration: none;
	text-shadow: 0 -1px #696969;
}

a.ctrl:hover,.ctrl a:hover,a.ctrl:focus,.ctrl a:focus {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter: alpha(opacity=100);
	opacity: 1;
}

a.ctrl:focus,.ctrl a:focus {
	outline: none;
}

.button {
	z-index: 2;
	margin: -.625em;
	width: 1.25em;
	height: 1.25em;
	border-radius: 50%;

	-webkit-box-shadow: 0 0 3px 1px #ffffff;
	box-shadow: 0 0 3px 1px #ffffff;
}

/* circular menu */
.tip {
	z-index: 1; /**outline:  dotted 1px #ffffff; /**/
margin: -5em;
	width: 10em;
	height: 10em;

	-webkit-transform: scale(.001);
	-moz-transform: scale(.001);
	-o-transform: scale(.001);
	-ms-transform: scale(.001);
	transform: scale(.001);
	list-style: none;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	opacity: 0;
}

/* the ends of the menu */
.tip:before,.tip:after {
	position: absolute;
	top: 34.3%;
	width: .5em;
	height: 14%;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=56)";
	filter: alpha(opacity=56);
	opacity: .56;
	background: #c9c9c9;
	content: '';
}

.tip:before {
	left: 5.4%;
	border-radius: .25em 0 0 .25em;

	-webkit-box-shadow: -1px 0 1px #696969, inset 1px 0 1px #ffffff, inset -1px 0 1px #808080, inset 0 1px 1px #ffffff, inset 0 -1px 1px #ffffff;
	box-shadow: -1px 0 1px #696969, inset 1px 0 1px #ffffff, inset -1px 0 1px #808080, inset 0 1px 1px #ffffff, inset 0 -1px 1px #ffffff;

	-webkit-transform: rotate(-75deg);
	-moz-transform: rotate(-75deg);
	-o-transform: rotate(-75deg);
	-ms-transform: rotate(-75deg);
	transform: rotate(-75deg);
}

.tip:after {
	right: 5.4%;
	border-radius: 0 .25em .25em 0;

	-webkit-box-shadow: 1px 0 1px #696969, inset -1px 0 1px #ffffff, inset 1px 0 1px #808080, inset 0 1px 1px #ffffff, inset 0 -1px 1px #ffffff;
	box-shadow: 1px 0 1px #696969, inset -1px 0 1px #ffffff, inset 1px 0 1px #808080, inset 0 1px 1px #ffffff, inset 0 -1px 1px #ffffff;

	-webkit-transform: rotate(75deg);
	-moz-transform: rotate(75deg);
	-o-transform: rotate(75deg);
	-ms-transform: rotate(75deg);
	transform: rotate(75deg);
}

/* make the menu appear on click */
.button:focus + .tip {
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-o-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter: alpha(opacity=100);
	opacity: 1;
}

/* slices of the circular menu */
.slice {
	overflow: hidden;
	position: absolute; /**outline:  dotted 1px #ffff00; /**/
width: 50%;
	height: 50%;

	-webkit-transform-origin: 100% 100%;
	-moz-transform-origin: 100% 100%;
	-o-transform-origin: 100% 100%;
	-ms-transform-origin: 100% 100%;
	transform-origin: 100% 100%;
}

/*
 * rotate each slice at the right angle = (A/2)° + (k -(n+1)/2)*A°
 * where A is the angle of 1 slice (30° in this case)
 * k is the number of the slice (in  {
	1,2,3,4,5}

 here)
 * and n is the number of slices (5 in this case)
 * formula works for odd number of slices (n odd)
 * for even number of slices (n even) the rotation angle is (k -n/2)*A°
 *
 * after rotating, skew on Y by 90°-A°;
	 here A° = the angle for 1 slice = 30°
 */
.slice:first-child {
	-webkit-transform: rotate(-45deg) skewY(60deg);
	-moz-transform: rotate(-45deg) skewY(60deg);
	-o-transform: rotate(-45deg) skewY(60deg);
	-ms-transform: rotate(-45deg) skewY(60deg);
	transform: rotate(-45deg) skewY(60deg);
}

.slice:nth-child(2) {
	-webkit-transform: rotate(-15deg) skewY(60deg);
	-moz-transform: rotate(-15deg) skewY(60deg);
	-o-transform: rotate(-15deg) skewY(60deg);
	-ms-transform: rotate(-15deg) skewY(60deg);
	transform: rotate(-15deg) skewY(60deg);
}

.slice:nth-child(3) {
	-webkit-transform: rotate(15deg) skewY(60deg);
	-moz-transform: rotate(15deg) skewY(60deg);
	-o-transform: rotate(15deg) skewY(60deg);
	-ms-transform: rotate(15deg) skewY(60deg);
	transform: rotate(15deg) skewY(60deg);
}

.slice:nth-child(4) {
	-webkit-transform: rotate(45deg) skewY(60deg);
	-moz-transform: rotate(45deg) skewY(60deg);
	-o-transform: rotate(45deg) skewY(60deg);
	-ms-transform: rotate(45deg) skewY(60deg);
	transform: rotate(45deg) skewY(60deg);
}

.slice:last-child {
	-webkit-transform: rotate(75deg) skewY(60deg);
	-moz-transform: rotate(75deg) skewY(60deg);
	-o-transform: rotate(75deg) skewY(60deg);
	-ms-transform: rotate(75deg) skewY(60deg);
	transform: rotate(75deg) skewY(60deg);
}

/* covers for the inner part of the links so there's no hover trigger between
star button & menu links;
	 give them a red background to see them */
.slice:after {
	position: absolute;
	top: 32%;
	left: 32%;
	width: 136%;
	height: 136%;
	border-radius: 50%; /* "unskew" = skew by minus the same angle by which parent was skewed */

-webkit-transform: skewY(-60deg);
	-moz-transform: skewY(-60deg);
	-o-transform: skewY(-60deg);
	-ms-transform: skewY(-60deg);
	transform: skewY(-60deg);
	content: '';
}

/* menu links */
.slice a {
	width: 200%;
	height: 200%;
	border-radius: 50%;

	-webkit-box-shadow: 0 0 3px #696969, inset 0 0 4px #ffffff;
	box-shadow: 0 0 3px #696969, inset 0 0 4px #ffffff; /* "unskew" & rotate by -A°/2 */

-webkit-transform: skewY(-60deg) rotate(-15deg);
	-moz-transform: skewY(-60deg) rotate(-15deg);
	-o-transform: skewY(-60deg) rotate(-15deg);
	-ms-transform: skewY(-60deg) rotate(-15deg);
	transform: skewY(-60deg) rotate(-15deg);

	background: -webkit-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -webkit-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: -moz-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -moz-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: -o-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -o-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: -ms-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -ms-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: -webkit-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -webkit-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: -moz-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -moz-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: -o-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -o-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: -ms-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -ms-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: -webkit-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -webkit-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: -moz-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -moz-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: -o-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -o-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: -ms-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -ms-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: -webkit-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -webkit-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: -moz-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -moz-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: -o-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -o-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: -ms-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -ms-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: -webkit-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -webkit-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: -moz-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -moz-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: -o-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -o-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: -ms-linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, -ms-linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);
	background: linear-gradient(75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 36.5% 0, linear-gradient(-75deg, transparent 50%, #808080 50%, transparent 54%) no-repeat 63.5% 0, radial-gradient(rgba(127,127,127,0) 49%, rgba(255,255,255,.7) 51%, #c9c9c9 52%);

	-webkit-background-size: 15% 15%, 15% 15%, cover;
	-moz-background-size: 15% 15%, 15% 15%, cover;
	background-size: 15% 15%, 15% 15%, cover;
	line-height: 1.4;
}

/* arrow for middle link */
.slice:nth-child(3) a:after {
	position: absolute;
	top: 13%;
	left: 50%;
	margin: -.25em;
	width: .5em;
	height: .5em;

	-webkit-box-shadow: 2px 2px 2px #ffffff;
	box-shadow: 2px 2px 2px #ffffff;

	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);

	background: -webkit-linear-gradient(-45deg, #c9c9c9 50%, transparent 50%);
	background: -moz-linear-gradient(-45deg, #c9c9c9 50%, transparent 50%);
	background: -o-linear-gradient(-45deg, #c9c9c9 50%, transparent 50%);
	background: -ms-linear-gradient(-45deg, #c9c9c9 50%, transparent 50%);
	background: linear-gradient(-45deg, #c9c9c9 50%, transparent 50%);
	content: '';
}

              
            
!

JS

              
                
              
            
!
999px

Console