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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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="container">
	<div class="profile">
		<div class="group">
			<div class="hair"></div>
			<div class="bangs"></div>
			<div class="face"></div>
			<div class="shadow"></div>
			<div class="glasses"></div>
			<div class="gl"></div>
			<div class="ear-r">
			</div>
			<div class="ear-l">
			</div>
			<div class="eye">
			</div>
			<div class="light"></div>
			<div class="nose"></div>
			<div class="mouth">
			</div>
			<div class="teeth"></div>
			<div class="beard"></div>
			<div class="neck">
			</div>
			<div class="body">
				<div class="coat"></div>
				<div class="vneck"></div>
			</div>
		</div>
	</div>
              
            
!

CSS

              
                $main-bg: #222;
$cl-bg: #cc3333;
$hair: #3c2417;
$coat: #4f3c30;
$acc: #ffffff;
$eyes: #3c2417;
$lips: #f05d44;
$skindk: #f0ac8f;
$skin: #f6ccb8;
$brown: #40281c;
$lite: #ffffff;
$glasses: teal;
@mixin idx($n) {
	z-index: $n;
}
@mixin border($b) {
	border-radius: $b;
	-webkit-border-radius: $b;
	-moz-border-radius: $b;
}
body {
	background-color: $main-bg;
}
.container,
.vneck,
.group,
.hair,
.bangs,
.face,
.eyebrow,
.shadow,
.ear-r,
.ear-l,
.eye,
.nose,
.mouth,
.teeth,
.neck,
.light,
.body {
	position: absolute;
}
.earring-r,
.shad,
.earring-l {
	position: relative;
}
.container {
	margin: auto;
	height: 200px;
	width: 200px;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}
.profile {
	position: relative;
	overflow: hidden;
	background-color: $cl-bg;
	@include border(50%);
	height: 200px;
	width: 200px;
	border: 5px solid white;
	&:hover {
		-webkit-box-shadow: 10px 10px 82px 0px rgba(0, 0, 0, 0.65);
		-moz-box-shadow: 10px 10px 82px 0px rgba(0, 0, 0, 0.65);
		box-shadow: 10px 10px 82px 0px rgba(0, 0, 0, 0.65);
	}
}
.hair {
	background-color: $hair;
	@include idx(3);
	@include border(50%);
	top: 38px;
	left: 51px;
	width: 100px;
	height: 100px;
}
.face {
	@include border(500px);
	@include idx(20);
	top: 56px;
	left: 59px;
	width: 85px;
	height: 100px;
	background: $skin;
}

.shadow {
	border-radius: 0 500px 500px 0;
	top: 56px;
	left: 100px;
	width: 45px;
	height: 100px;
	@include idx(25);
	background: $skindk;
}
.ear-r {
	@include border(500px);
	top: 95px;
	left: 56px;
	width: 10px;
	height: 20px;
	@include idx(0);
	background-color: $skin;
}
.ear-l {
	@include border(500px);
	top: 95px;
	left: 138px;
	width: 10px;
	height: 20px;
	@include idx(0);
	background: $skindk;
}
.neck {
	@include idx(14);
	top: 100px;
	left: 83px;
	width: 32px;
	height: 100px;
	background: $skin;
}
.shad {
	top: 8px;
	width: 0;
	height: 0;
	border-top: 45px solid transparent;
	border-bottom: 30px solid transparent;
	@include idx(39);
	border-right: 33px solid $skindk;
}

.nose {
	@include idx(38);
	left: 82px;
	top: 106px;
	width: 0;
	height: 0;
	border-left: 25px solid transparent;
	border-right: 16px solid transparent;
	border-bottom: 25px solid $skindk;
	transform: rotate(-122deg);
}
.group {
	top: -8px;
}
.body {
	background-color: $acc;
	width: 140px;
	height: 100px;
	border-radius: 40px 40px 0px 0px;
	@include idx(30);
	top: 170px;
	left: 30px;
}
.vneck {
	top: -5px;
	border-radius: 30px 0px 0px 30px;
	left: 54px;
	@include idx(2);
	height: 40px;
	width: 30px;
	background-color: $skin;
	transform: rotate(-90deg);
}
.coat {
	position: absolute;
	left: 2px;
	top: 0px;
	background-color: $coat;
	height: 49px;
	width: 45px;
	border-radius: 20px 0px 0px 0px;
}
.coat:after {
	position: absolute;
	content: "";
	left: 89px;
	top: 0px;
	background-color: $coat;
	height: 49px;
	width: 45px;
	border-radius: 0px 20px 0px 0px;
}
.beard {
	position: absolute;
	width: 79px;
	height: 40px;
	border-radius: 0px 0px 40px 40px;
	background-color: $hair;
	top: 127px;
	left: 62px;
	z-index: 55;
}
.beard:before {
	width: 91px;
	height: 92px;
	border-radius: 50%;
	box-shadow: 15px 15px 0 0 $hair;

	top: -82px;
	left: -5px;

	content: "";
	position: absolute;
	transform: rotate(47deg);
}
.eye {
	@include idx(30);
	top: 92px;
	left: 75px;
	width: 15px;
	height: 15px;
	background: $brown;
	@include border(100%);
	&:before {
		position: absolute;
		content: "";
		left: 40px;
		width: 15px;
		height: 15px;
		background: $brown;
		@include border(100%);
	}
}

.light {
	@include idx(39);
	top: 95px;
	left: 83px;
	width: 3px;
	height: 3px;
	background: $lite;
	@include border(100%);
	&:before {
		position: absolute;
		content: "";
		left: 40px;
		width: 3px;
		height: 3px;
		background: $lite;
		@include border(100%);
	}
}
.bangs {
	@include idx(85);
	width: 69px;
	height: 33px;
	background-color: $hair;
	top: 50px;
	left: 69px;
	border-radius: 0px 50px;
	transform: rotate(5deg);
	&:after {
		position: absolute;
		content: "";
		width: 20px;
		height: 19px;
		background-color: $hair;
		top: 12px;
		border-radius: 0px 33px;
		transform: rotate(30deg);
		&:before {
			position: absolute;
			content: "";
			width: 15px;
			height: 22px;
			background-color: $hair;
			border-radius: 0px 40px;
			top: 9px;
			left: -5px;
			transform: rotate(35deg);
		}
	}
}
.mouth {
	left: 86px;
	width: 28px;
	background-color: $lips;
	height: 13px;
	@include idx(56);
	top: 131px;
	border-radius: 0px 0px 500px 500px;
}
.teeth {
	left: 87px;
	width: 26px;
	background-color: $lite;
	height: 4px;
	@include idx(58);
	top: 132px;
	border-radius: 0px 0px 500px 500px;
}
.glasses {
	height: 17px;
	width: 27px;
	border-radius: 0px 0px 15px 10px;
	background-color: transparent;
	border: 3px solid $glasses;
	position: absolute;
	top: 89px;
	left: 65px;
	@include idx(80);
	&:before {
		height: 17px;
		width: 27px;
		border-radius: 0px 0px 10px 15px;
		background-color: transparent;
		border: 3px solid $glasses;
		position: absolute;
		top: -3px;
		left: 39px;
		content: "";
	}
	&:after {
		content: "";
		position: absolute;
		top: -1px;
		left: 29px;
		background-color: $glasses;
		width: 13px;
		height: 3px;
	}
}
.gl {
	position: absolute;
	width: 10px;
	height: 3px;
	background-color: $glasses;
	top: 93px;
	left: 55px;
	@include idx(66);
	&:after {
		content: "";
		position: absolute;
		width: 10px;
		height: 3px;
		background-color: $glasses;
		left: 85px;
	}
}

              
            
!

JS

              
                
              
            
!
999px

Console