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

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.main.shadow
	div.ear.left-ear
		div.inner-ear
	div.ear.right-ear
		div.inner-ear
	div.cowlick.fur-shadow		
	div.head.fur-shadow
		div.stripe
		div.stripe
		div.stripe
		div.stripe
		div.stripe
		div.stripe
	div.eyebrow.left
	div.eye.left-eye.inner-shadow
		div.pupil
			div.inner
			div.highlight
	div.eyebrow.right
	div.eye.right-eye.inner-shadow
		div.pupil
			div.inner
			div.highlight
	div.snout
	div.freckles
		span
		span
		span
		span
		span
		span
	div.nose.fur-shadow
	div.mouth-clip
		div.mouth.fur-shadow
			div.tooth
	div.arm.right-arm
	div.arm.left-arm
	div.collar.fur-shadow
	div.sleeves.shirt-shadow
	div.shirt
		span.button
		span.button
		span.button
	div.pocket
	div.hand.right-hand.fur-shadow
	div.hand.left-hand.fur-shadow
	div.jeans-leg
	div.jeans-leg.right-leg
	div.shoe-outer
		div.shoe.shoe-highlight
	div.shoe-outer.right
		div.shoe.shoe-highlight
	div.signature




              
            
!

CSS

              
                :root {
	--fur: orange;
	--shirt: lightgreen;
	--shirt-z-index: 10;
	--head-z-index: 20;
	--arm-z-index: 0;
	--collar-z-index: 15;
}
@mixin fur() {
	background: rgb(252,176,69);
	background: linear-gradient(90deg, rgba(252,176,69,1) 0%, rgba(211,142,64,1) 21%, rgba(252,176,69,1) 50%, rgba(197,131,62,1) 72%, rgba(252,176,69,1) 100%);
	background-size: 150px;
}


html {
	height: 100%;
}
body {
	margin: 10vh auto;
	background: #ccc;
	height: 100%;
}
div {
	min-height: 10px;
	background-color: black;
	box-sizing: border-box;
}
div.main {
	background-color: #fff;
	height: 400px;
	width: 600px;
	margin: auto;
	position: relative;
	div {
		position: absolute;
	}
}
div.cowlick {
	@include fur();
	height: 100px;
	width: 200px;
	clip-path: polygon(3% 78%, 40% 72%, 65% 79%, 92% 68%, 96% 58%, 97% 43%, 88% 57%, 69% 65%, 74% 55%, 73% 42%, 61% 59%, 18% 70%);
	left: 200px;
	top: -20px;
	z-index: 120;
}
div.ear {
	@include fur();
	width: 90px;
	height: 110px;
	top: 20px;
	.inner-ear {
		height: 100px;
		width: 60px;
		background-color: rgba(0, 0, 0, 40%);
		position: absolute;
		bottom: 0;
	}
	&.left-ear {
		clip-path: polygon(26% 0, 0% 100%, 100% 100%);
		left: 50px;		
		.inner-ear {
			left: 10px;
			clip-path: polygon(26% 0, 0% 100%, 100% 100%);
		}
	}
	&.right-ear {
		clip-path: polygon(74% 0, 0% 100%, 100% 100%);
		right: 50px;
		.inner-ear {
		clip-path: polygon(74% 0, 0% 100%, 100% 100%);
			right: 10px;
		}
	}
}
div.eyebrow {
	background-color: rgba(0, 0, 0, 30%);
	clip-path: ellipse(50% 28% at 50% 50%);
	left: 110px;
	top: 50px;
	z-index: 95;
	height: 100px;
	width: 100px;
	&.right {
		left: auto;
		right: 110px;
	}
}
div.eye {
	background-color: #fff;
	clip-path: ellipse(50% 28% at 50% 50%);
	left: 110px;
	top: 60px;
	z-index: 100;
	height: 100px;
	width: 100px;
	&.right-eye {
		left: auto;
		right: 110px;
	}
	div.pupil {
		background: #00c;
		height: 70px;
		width: 70px;
		border-radius: 50%;
		div.inner {
			background: #000;
			height: 20px;
			width: 20px;
			border-radius: 50%;
			top: 30px;
			left: 20px;
		}
		div.highlight {
			background: #fff;
			height: 10px;
			width: 10px;
			border-radius: 50%;
			top: 30px;
			left: 20px;
		}
	}
}
div.nose {
	background-color: rgb(226, 135, 151);
	width: 60px;
	height: 30px;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
	border-radius: 50%;
	top: 100px;
	left: -50%;
	margin-left: 570px;
	z-index: var(--head-z-index);
}
div.snout {
	background-color: transparent;
	width: 80px;
	height: 30px;
	border-radius: 50%;
	top: 100px;
	left: 260px;
	z-index: 200;
	z-index: var(--head-z-index);
	box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 20%);
}
div.freckles {
	overflow: hidden;
	width: 200px;
	height: 30px;
	top: 100px;
	left: 200px;
	z-index: 200;
	z-index: var(--head-z-index);
	background-color: transparent;
	span {
		display: block;
		height: 8px;
		width: 8px;
		background-color: rgba(0, 0, 0, 60%);
		border-radius: 50%;
		position: absolute;
		top: 20px;
		&:nth-child(1) {
			left: 20px;
		}
		&:nth-child(2) {
			left: 35px;
			top: 0;
		}

		&:nth-child(3) {
			left: 50px;
		}

		&:nth-child(4) {
			left: 140px;
		}

		&:nth-child(5) {
			left: 155px;
			top: 0;
		}

		&:nth-child(6) {
			left: 170px;
		}

	}
}


div.head {
	border-radius: 50%;
	width: 500px;
	height: 150px;
	top: 50px;
	left: -50%;
	margin-left: 350px;
	@include fur();
	z-index: var(--head-z-index);
	overflow: hidden;
	div.stripe {
		background-color: rgba(0, 0, 0, 60%);
		clip-path: ellipse(50% 28% at 50% 50%);
		width: 40px;
		&:nth-child(1) {
			top: 55px;
		}
		&:nth-child(2) {
			top: 65px;
		}
		&:nth-child(3) {
			top: 75px;
		}
		&:nth-child(4) {
			top: 55px;
			right: 0;
		}
		&:nth-child(5) {
			top: 65px;
			right: 0;
		}
		&:nth-child(6) {
			top: 75px;
			right: 0;
		}

	}
}
div.mouth-clip {
	width: 200px;
	height: 40px;
	background-color: transparent;
	overflow: hidden;
	left: 200px;
	top: 140px;
	z-index: var(--head-z-index);
}
div.mouth {
	width: 200px;
	background-color: #333;
	height: 80px;
	border-radius: 50%;
	left: 0;
	top: -40px;
	div.tooth {
		background-color: #fff;
		width: 20px;
		height: 20px;
		left: 130px;
		top: 40px;
		clip-path: polygon(50% 100%, 0 0, 100% 0);
	}
}
div.shirt {
	background-color: var(--shirt);
background: linear-gradient(180deg, var(--shirt) 70%,var(--shirt) 0%, rgb(66, 142, 66) 100%);
	z-index: var(--shirt-z-index);
	height: 100px;
	width: 360px;
	top: 200px;
	left: 120px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: center;
  align-items: center;
	gap: 10px;
	span.button {
		position: relative;
		box-sizing: border-box;
		border-radius: 50%;
		border: 4px solid darkgreen;
		width: 13px;
		height: 13px;
		background-color: #ccc;
	}
}
div.sleeves {
	background-color: var(--shirt);
	z-index: var(--shirt-z-index);
	height: 100px;
	width: 500px;
	top: 170px;
	left: 50px;
	border-radius: 50%;
	z-index: 0;
}
div.pocket {
	background-color: darkgreen;
	top: 220px;
	right: 150px;
	height: 10px;
	width: 55px;
	border-radius: 2px;
	z-index: var(--collar-z-index);
}
div.collar {
	z-index: var(--collar-z-index);
	background-color: darkgreen;
	clip-path: polygon(0% 0%, 25% 100%, 50% 40%, 75% 100%, 100% 0%);
	height: 50px;
	width: 280px;
	left: 160px;
	top: 180px;
}
div.arm {
	@include fur();
	z-index: var(--arm-z-index);
	height: 80px;
	width: 60px;
	top: 220px;
	left: 70px;
	transform: skew(5deg, 0deg);
	&.right-arm {
		left: auto;
		right: 70px;
	transform: skew(-5deg, 0deg);
	}
}
div.hand {
	z-index: var(--head-z-index);
	@include fur();
	height: 50px;
	border-radius: 50%;
	width: 70px;
	top: 280px;
	left: 60px;
	&.right-hand {
		left: auto;
		right: 60px;
	}
}
div.jeans-leg {
	background-color: darkblue;
	height: 60px;
	width: 220px;
	top: 300px;
	left: 100px;
	transform: skew(10deg, 0deg);
	&.right-leg {
		right: 100px;
		left: auto;
		transform: skew(-10deg, 0deg);
	}
}
div.shoe-outer {
	background-color: transparent;
	width: 200px;
	height: 80px;
	top: 320px;
	left: 100px;
	border-radius: 50%;
	overflow: hidden;
	&.right {
		right: 100px;
		left: auto;
	}
}
div.shoe {
	background-color: red;
	width: 200px;
	height: 40px;
	top: 0;
	left: 0;
	box-sizing: border-box;
	border-color: #ccc;
	border-width: 0 0 10px 0;
	border-style: solid;
}
div.signature {
	height: 20px;
	bottom: 15px;
	right: 95px;
	width: 100px;
	background-color: #fff;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url(https://artlung.com/images/ARTLUNG_HEADER.gif);
	opacity: 0.4;
}

.shadow {
	box-shadow: 0 3px 6px rgba(0, 0, 0, 50%);
}
.inner-shadow {
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 80%);
}
.fur-shadow {
	box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 50%);
}
.shirt-shadow {
	box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 50%);
}
.shoe-highlight {
	box-shadow: inset 0px 10px 20px rgba(102, 0, 0, 100%);
}

              
            
!

JS

              
                
              
            
!
999px

Console