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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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="mickey"></div>
              
            
!

CSS

              
                * {
	border: 0;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
body {
	background: #e3e4e8;
	display: flex;
	height: 100vh;
}

// palette
$b: rgb(6,6,6);
$bT: rgba(6,6,6,0);
$w: rgb(255,255,255);
$wT: rgba(255,255,255,0);
$r: rgb(255,6,0);
$rT: rgba(255,6,0,0);

.mickey {
	background:
		// right eye
		radial-gradient(100% 100% at center,$b 48%,$bT 50%) 15em 8.6em / 1em 3em,
		radial-gradient(200% 200% at 0 100%,$b 48%,$bT 50%) 15.5em 8.6em / 1.3em 3.1em,
		radial-gradient(200% 200% at 100% 0,$b 48%,$bT 50%) 15em 10em / 1.3em 3em,
		radial-gradient(100% 100% at center,$b 48%,$bT 50%) 15.8em 10em / 1em 3em,
		// nose
		radial-gradient(200% 200% at 100% 100%,$b 49%,$bT 50%) 19.7em 9.8em / 1.6em 2.3em,
		radial-gradient(100% 100% at center,$b 49%,$bT 50%) 20.3em 9.8em / 1.7em 2em,
		radial-gradient(100% 100% at center,$b 49%,$bT 50%) 19.7em 10.9em / 1.7em 2em,
		radial-gradient(200% 200% at 0% 0%,$b 49%,$bT 50%) 20.5em 10.9em / 1.5em 2em,
		// upper lip
		radial-gradient(200% 215% at 100% -10%,$wT 25%,$w 26% 47%,$b 47.5% 49.5%,$bT 50%) 9.3em 12.6em / 6.7em 4.4em,
		radial-gradient(200% 200% at 0% 0%,$w 47.5%,$wT 48%) 16em 13.1em / 5.3em 3.7em,
		radial-gradient(200% 199% at 0% 0%,$b 49.5%,$bT 50%) 16em 13.1em / 5.3em 3.8em,
		// lower lip
		linear-gradient(70deg,$w 49%, $wT 50%) 9.9em 15.5em / 1em 1.7em,
		radial-gradient(270% 220% at 106% -10%,$wT 42%,$w 42.5% 46.75%,$wT 47%) 9.9em 12.3em / 2.9em 6.5em,
		radial-gradient(270% 220% at 106% -10%,$bT 40%,$b 40.5% 48.5%,$bT 49%) 10em 12.3em / 2.8em 6.5em,
		radial-gradient(270% 220% at 4% -10%,$bT 40%,$b 40.5% 42%,$w 42.5% 46.5%,$b 47% 48.5%,$bT 49%) 12.8em 12.3em / 4.6em 6.5em,
		// tongue
		radial-gradient(100% 100% at center,$w 49%,$wT 50%) 10.4em 16.7em / 1em 1em,
		radial-gradient(200% 200% at 0% 100%,$r 45%,$rT 46%) 10.6em 15.4em / 2.7em 2.1em,
		radial-gradient(200% 200% at 0% 100%,$b 49%,$bT 50%) 10.6em 15.4em / 2.5em 1.8em,
		radial-gradient(200% 200% at 0% 100%,$r 44%,$b 45% 49%,$bT 50%) 10.7em 16em / 4.3em 1.6em,
		// mouth
		radial-gradient(200% 215% at 100% 110%,$w 49%,$wT 50%) 16.8em 11.5em / 2.5em 1.6em,
		radial-gradient(200% 200% at 100% 100%,$b 49%,$bT 50%) 16.8em 11.3em / 2.5em 1.8em,
		radial-gradient(200% 200% at 0% 102%,$w 48%,$wT 50%) 19.3em 11.5em / 1.8em 1.6em,
		radial-gradient(200% 200% at 0% 100%,$b 49%,$bT 50%) 19.3em 11.3em / 2em 1.8em,
		radial-gradient(100% 100% at center,$b 49%,$bT 50%) 10.2em 13em / 2em 3.5em,
		radial-gradient(100% 200% at 50% 100%,$w 49%,$wT 50%) 8.6em 12.6em / 2em 0.5em,
		radial-gradient(100% 200% at 50% 100%,$w 28%,$b 29% 49%,$bT 50%) 8.6em 12.3em / 2em 0.7em,
		radial-gradient(200% 200% at 100% 100%,$w 49%,$wT 50%) 7.1em 10.8em / 2.4em 2.4em,
		radial-gradient(240% 200% at -17% 102%,$w 49.5%,$wT 50%) 9.5em 10.6em / 4.5em 5.8em,
		radial-gradient(200% 200% at 100% 0%,$w 49.5%,$wT 50%) 7.1em 13.2em / 7em 5.2em,
		// left eye
		radial-gradient(100% 100% at center,$b 48%,$bT 50%) 16.9em 9.1em / 0.7em 2.1em,
		radial-gradient(200% 200% at 0 100%,$b 48%,$bT 50%) 17.2em 9.1em / 0.9em 1.7em,
		radial-gradient(200% 200% at 100% 0,$b 48%,$bT 50%) 16.9em 10.3em / 0.9em 2.1em,
		radial-gradient(100% 200% at 50% 100%,$b 48%,$bT 50%) 17.2em 9.7em / 1em 2em,
		// areas around eyes
		radial-gradient(200% 200% at 100% 100%,$w 49%,$wT 50%) 11.7em 6.4em / 1.4em 2.8em,
		radial-gradient(200% 200% at 0% 100%,$w 49.5%,$wT 50%) 13.1em 6.4em / 4em 5em,
		radial-gradient(200% 200% at 100% 0%,$w 48.5%,$wT 49%) 11.6em 9.1em / 4.5em 5.85em,
		radial-gradient(200% 208% at -28% 101%,$w 49.5%,$wT 50%) 16.1em 7.4em / 3.6em 5.7em,
		// ears
		radial-gradient(100% 100% at center,$b 49%,$bT 50%) 0 7.35em / 7.1em 7.2em,
		radial-gradient(100% 100% at center,$b 49%,$bT 50%) 5.8em 0 / 7.1em 7.1em,
		// head
		radial-gradient(100% 100% at center,$b 49.5%,$bT 50%) 6.5em 6em / 12.3em 12.4em
		;
	background-repeat: no-repeat;
	font-size: 10px;
	margin: auto;
	position: relative;
	width: 22em;
	height: 19em;
}

@media (prefers-color-scheme: dark) {
	body {
		background: #454954;
	}
}
@media (min-width: 480px) {
	.mickey {
		font-size: 15px;
	}
}
@media (min-width: 600px) {
	.mickey {
		font-size: 20px;
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console