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="container">
	<div class="cat2">
		<div class="face">
			<div class="mouth"></div>
			<div class="ears"></div>
		</div>
	</div>
	<div class="cat1">
		<div class="face">
			<div class="mouth"></div>
			<div class="ears"></div>
		</div>
	</div>
	<div class="details"></div>
</div>
<div class="dribbble-icon" onclick="window.open(&quot;https://dribbble.com/shots/3294805-Kitties&quot;)">
  <img width="32px" height="32px" src="https://cdn.dribbble.com/assets/dribbble-ball-mark-2bd45f09c2fb58dbbfb44766d5d1d07c5a12972d602ef8b32204d28fa3dda554.svg"/>
</div>
              
            
!

CSS

              
                $pink: #F58F82;
$light: #F9F2E4;
$dark: #1C1768;
* { 
	margin: 0;
	padding: 0;
	background-color: 0; 
}
::-webkit-scrollbar {
	display: none;
}
body{
	background: $pink;
}
$border: solid 0px black;
.container {
	position: relative;
	margin: 2em auto;
	width: 430px;
	height: 500px;
	&:before{
		position: absolute;
		content: '';
		width: 50px;
		height: 10%;
		border-radius: 5em 5em 0 0 ;
		border: solid $light 30px;
		border-bottom-color: transparent;
		border-bottom-width: 0px;
		transform-origin: bottom left;
		transform: translate(201px,136px) rotate(25deg);
	}
	&:after{
		position: absolute;
		content: '';
		width: 50px;
		height: 10%;
		border-radius: 5em 5em 0 0 ;
		border: solid $dark 30px;
		border-bottom-color: transparent;
		border-bottom-width: 0px;
		transform-origin: bottom right;
		transform: translate(119px,136px) rotate(-25deg);
	}
	> .cat1{
		position: absolute;
		width: 90px;
		height: 300px;
		background: $light;
		border-radius: 0 0 0 1em;
		bottom: 0;
		&:before{
			position: absolute;
			content: '';
			border-bottom: solid $light 300px;
			border-right: solid transparent 100px;
			left: 100%;
		}
		&:after{
			position: absolute;
			content: '';
			width: 50px;
			height: 94%;
			border-radius: 5em 5em 0 0 ;
			border: solid $light 30px;
			border-left-color: transparent;
			bottom: 0;
			right: -100px;
			transform-origin: bottom right;
			transform: rotate(25deg);
		}
		> .face{
			position: absolute;
			width: 170px;
			height: 110px;
			background: $light;
			border-radius: 5em;
			bottom: 98%;
			left: 50%;
			transform: translatex(-50%);
			&:after{
				position: absolute;
				content: '';
				$size: 20px;
				width:$size;
				height:$size;
				border-radius:50%;
				background: transparent;
				top: 50%;
				left: 50%;
				transform: translate(-50%, -50%);
				box-shadow: 
					-30px 0 0 $dark,
					30px 0 0 $dark,
			}
			&:before{
				position: absolute;
				content: '';
				width: 40px;
				height: 6px;
				background: transparent;
				top: 50%;
				left: 50%;
				transform: translate(-50%, -50%);
				box-shadow:
					-80px -5px 0 $dark,
					-80px 5px 0 $dark,
					80px -5px 0 $dark,
					80px 5px 0 $dark,
			}
			> .mouth{
				position: absolute;
				border-top: solid 13px $pink;
				border-left: solid 13px transparent;
				border-right: solid 13px transparent;
				top: 50%;
				left: 50%;
				transform: translate(-50%, -50%);
				border-radius: 5em;
				&:before{
					position: absolute;
					content: '';
					width: 10px;
					height: 10px;
					border-radius: 0 0 5em 0;
					border: solid 5px $pink;
					border-top-color: transparent;
					border-left-color: transparent;
					right: -2px;
					top: -5px;
				}
				&:after{
					position: absolute;
					content: '';
					width: 10px;
					height: 10px;
					border-radius: 0 0 0 5em;
					border: solid 5px $pink;
					border-top-color: transparent;
					border-right-color: transparent;
					left: -2px;
					top: -5px;
				}
			}
			> .ears{
				position: absolute;
				border-bottom: solid $light 30px;
				border-right: solid transparent 17px;
				border-left: solid transparent 17px;
				bottom: 99%;
				left: 50%;
				transform: translatex(-50%) translatex(-19px);
				&:before{
					position: absolute;
					content: '';
					border-bottom: solid $light 30px;
					border-right: solid transparent 17px;
					border-left: solid transparent 17px;
					left: 21px;
				}
				&:after{
					position: absolute;
					content:'';
					$size: 5px;
					width:$size;
					height:$size;
					border-radius:50%;
					background:$light;
					left: 50%;
					transform: translatex(-50%);
					top: 3px;
					box-shadow: 
						0 -3px 0 $pink,
						38px 0px 0 $light,
						38px -3px 0 $pink,
				}
			}
		}
	}
	> .cat2{
		position: absolute;
		width: 90px;
		height: 300px;
		background: $dark;
		border-radius: 0 0 1em 0;
		bottom: 0;
		right: 0;
		&:before{
			position: absolute;
			content: '';
			border-bottom: solid $dark 300px;
			border-left: solid transparent 100px;
			right: 100%;
		}
		&:after{
			position: absolute;
			content: '';
			width: 50px;
			height: 94%;
			border-radius: 5em 5em 0 0 ;
			border: solid $dark 30px;
			border-right-color: transparent;
			bottom: 0;
			left: -100px;
			transform-origin: bottom left;
			transform: rotate(-25deg);
		}
		> .face{
			position: absolute;
			width: 170px;
			height: 110px;
			background: $dark;
			border-radius: 5em;
			bottom: 98%;
			left: 50%;
			transform: translatex(-50%);
			&:after{
				position: absolute;
				content: '';
				$size: 20px;
				width:$size;
				height:$size;
				border-radius:50%;
				background: transparent;
				top: 50%;
				left: 50%;
				transform: translate(-50%, -50%);
				box-shadow: 
					-30px 0 0 $light,
					30px 0 0 $light,
			}
			&:before{
				position: absolute;
				content: '';
				width: 40px;
				height: 6px;
				background: transparent;
				top: 50%;
				left: 50%;
				transform: translate(-50%, -50%);
				box-shadow:
					-80px -5px 0 $light,
					-80px 5px 0 $light,
					80px -5px 0 $light,
					80px 5px 0 $light,
			}
			> .mouth{
				position: absolute;
				border-top: solid 13px $pink;
				border-left: solid 13px transparent;
				border-right: solid 13px transparent;
				top: 50%;
				left: 50%;
				transform: translate(-50%, -50%);
				border-radius: 5em;
				&:before{
					position: absolute;
					content: '';
					width: 10px;
					height: 10px;
					border-radius: 0 0 5em 0;
					border: solid 5px $pink;
					border-top-color: transparent;
					border-left-color: transparent;
					right: -2px;
					top: -5px;
				}
				&:after{
					position: absolute;
					content: '';
					width: 10px;
					height: 10px;
					border-radius: 0 0 0 5em;
					border: solid 5px $pink;
					border-top-color: transparent;
					border-right-color: transparent;
					left: -2px;
					top: -5px;
				}
			}
			> .ears{
				position: absolute;
				border-bottom: solid $dark 30px;
				border-right: solid transparent 17px;
				border-left: solid transparent 17px;
				bottom: 99%;
				left: 50%;
				transform: translatex(-50%) translatex(-19px);
				&:before{
					position: absolute;
					content: '';
					border-bottom: solid $dark 30px;
					border-right: solid transparent 17px;
					border-left: solid transparent 17px;
					left: 21px;
				}
				&:after{
					position: absolute;
					content:'';
					$size: 5px;
					width:$size;
					height:$size;
					border-radius:50%;
					background:$dark;
					left: 50%;
					transform: translatex(-50%);
					top: 3px;
					box-shadow: 
						0 -3px 0 $pink,
						38px 0px 0 $dark,
						38px -3px 0 $pink,
				}
			}
		}
	}
	> .details{
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%) translate(-1px,-30px);
		width: 30px;
		height: 30px;
		border-radius: 50%;
		background: $dark;
		box-shadow: 
			2px 4px 0 $dark
	}
}
.dribbble-icon {
  position: absolute;
  right: 15px;
  bottom: 10px;
  cursor: pointer;
}
              
            
!

JS

              
                // https://dribbble.com/shots/3294805-Kitties
              
            
!
999px

Console