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

              
                <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	 width="410.748px" height="540px" viewBox="0 0 410.748 540" enable-background="new 0 0 410.748 540" xml:space="preserve">
<g id="marceline">
	<path id="marceline-bg" fill="#050A1E" d="M410.748,540H0V0h410.748V540z"/>
	<path id="marceline-face" fill="#BED3D8" d="M153.569,540c0,0,16.5-38.333-9.5-74.667s-55-58.333-55-58.333
		s-55.333-44.333-55-108c0,0,33.333-95.333,45.333-118.667S112.402,115,120.068,90s12.666-46.333,15.333-63.667
		c0,0,49,70.667,81,108s89.667,93.333,120,157.667c0,0,8,52.333-40.667,105c0,0-11.75,13.5-20.5,20.75s-44.5,38-47.5,63.5
		s5.5,49.5,12,58.75H153.569z"/>
	<path id="marceline-bite-0" fill="#790000" d="M210.735,488c-2.394,0-4.333-1.94-4.333-4.333s1.94-4.333,4.333-4.333
		s4.333,1.94,4.333,4.333S213.128,488,210.735,488z"/>
	<path id="marceline-bite-1" fill="#790000" d="M211.568,517.667c-2.485,0-4.5-2.015-4.5-4.5s2.015-4.5,4.5-4.5s4.5,2.015,4.5,4.5
		S214.054,517.667,211.568,517.667z"/>
  <path id="marceline-scary-eye-l-wrapper" fill="#00A29B" d="M117.944,274.25c-18.317,0-33.167-14.849-33.167-33.167
		c0-18.318,14.849-33.167,33.167-33.167s33.167,14.849,33.167,33.167C151.111,259.401,136.262,274.25,117.944,274.25z"/>
	<path id="marceline-scary-eye-r-wrapper" fill="#00A29B" d="M264.225,270.798c-18.317,0-33.167-14.849-33.167-33.167
		c0-18.318,14.849-33.167,33.167-33.167s33.167,14.849,33.167,33.167C297.391,255.949,282.542,270.798,264.225,270.798z"/>
  <path id="marceline-scary-mouth" d="M192.734,393.667c-33.505,0-60.667-27.162-60.667-60.667s27.162-60.667,60.667-60.667
		s60.667,27.162,60.667,60.667S226.24,393.667,192.734,393.667z"/>
	
	<path id="marceline-eye-l" d="M114.861,250.512c-5.523,0-10-4.477-10-10s4.477-10,10-10s10,4.477,10,10
		S120.384,250.512,114.861,250.512z"/>
	<path id="marceline-eye-r" d="M265.673,247.631c-5.523,0-10-4.477-10-10s4.477-10,10-10s10,4.477,10,10
		S271.196,247.631,265.673,247.631z"/>
	<path id="marceline-mouth" d="M237.985,273.25c1.333-0.25,1.583,0.5,1.833,1.667s-1.25,1.333-1.25,1.333l-6.25,1.667
		c0,0-15.667,19.75-16.75,21.167s-2,0-2,0l-3.583-18.25c-30.917,0.917-38.75-2.25-38.75-2.25s-10.75,16.417-12.167,17.333
		s-1.917,0-1.917,0l-4.417-23.5c0,0-2.75-1-4.083-1.75s-0.917-1.5,0-2.833s2.167-0.583,2.167-0.583
		C185.777,285.25,237.985,273.25,237.985,273.25z"/>
	<path id="marceline-teeth-l" fill="#FFFFFF" d="M155.777,272.958c0,0,7.125,3.166,11.958,4.208L158.777,290L155.777,272.958z"/>
	<path id="marceline-teeth-r" fill="#FFFFFF" d="M213.651,280.167l14.75-2l-12.25,15.917L213.651,280.167z"/>
	<path id="marceline-hair-l" fill="#0B193C" d="M18.756,540.021h-6.542l-0.146-0.354C-23.265,413,30.235,294.083,30.235,294.083
		c-0.75,5.583,3.832,6.917,3.832,6.917C-17.935,426,18.756,540.021,18.756,540.021z"/>
	<path id="marceline-hair-r" fill="#0B193C" d="M336.892,291.667c0,0,4.677,1.167,2.51-3.5c0,0,55.333,71.833,54.833,148.833
		c0,0,17-63.5,7-107s-52.5-146.5-88-200.833c0,0-2-6,2.833-6.333c0,0,2-0.5,4.333,3.833c0,0,66,108.333,88.667,210.667
		c0,0,9.333,53.666-16,126.333c0,0-1.583,8.417-6.083,7.417s-1.917-5.833-1.417-7.75S406.548,400.833,336.892,291.667z"/>
</g>
	
	<g id="marceline-scary-teeth">
		<path fill="#FFFFFF" stroke="#000000" stroke-width="3" stroke-miterlimit="10" d="M188.568,275.708l-6.167,26.958l-7.667-24.292
			C179.087,274.496,188.568,275.708,188.568,275.708z"/>
		<path fill="#FFFFFF" stroke="#000000" stroke-width="3" stroke-miterlimit="10" d="M207.901,277.5l-7,24.333l-8.167-26.305
			C202.4,273.891,207.901,277.5,207.901,277.5z"/>
		<path fill="#FFFFFF" stroke="#000000" stroke-width="3" stroke-miterlimit="10" d="M174.984,389.228l7.667-24.292l6.167,26.958
			C188.818,391.895,179.336,393.106,174.984,389.228z"/>
		<path fill="#FFFFFF" stroke="#000000" stroke-width="3" stroke-miterlimit="10" d="M192.984,392.074l8.167-26.305l7,24.333
			C208.151,390.103,202.65,393.711,192.984,392.074z"/>
	</g>
	<path id="marceline-scary-teeth-l" fill="#FFFFFF" stroke="#000000" stroke-width="3" stroke-miterlimit="10" d="
		M170.86,279.625l-6.375,35.125l-10.625-24.625C157.985,285.125,170.86,279.625,170.86,279.625z"/>
	<path id="marceline-scary-teeth-r" fill="#FFFFFF" stroke="#000000" stroke-width="3" stroke-miterlimit="10" d="M229.11,288.875
		L218.485,313.5l-6.375-35.125C212.11,278.375,224.985,283.875,229.11,288.875z"/>
	<path id="marceline-scary-eye-l" d="M117.069,263.333c-7.501-24.667,0-44.5,0-44.5V263.333z"/>
	<path id="marceline-scary-eye-r" d="M265.225,214.381c0,0,8.5,23.667,0,44.667V214.381z"/>
</svg>
              
            
!

CSS

              
                :root {
  --bg-color: #050a1e;
  --accent-color: #5a5f73;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  background: var(--bg-color);
}

svg {
  position: absolute;
  bottom: 0;
  max-width: 100%;
}

#marceline-scary-eye-r-wrapper, #marceline-scary-eye-l-wrapper, #marceline-scary-eye-l, #marceline-scary-eye-r, #marceline-scary-teeth, #marceline-scary-teeth-l, #marceline-scary-teeth-r, #marceline-scary-mouth, #marceline-scary-throat {
  opacity: 0;
}

@media (max-height: 720px) {
  svg {
    transform-origin: bottom;
    transform: scale(.8);
  }
}

@media (max-height: 420px) {
  svg {
    transform-origin: bottom;
    transform: scale(.5);
  }
}
              
            
!

JS

              
                var tl = gsap.timeline({repeat: -1, yoyo: true});

tl.to({}, 1, {});

tl.to("#marceline-eye-l", .25, {morphSVG: {
  shape: "#marceline-scary-eye-l",
  ease: Power3.easeInOut
}});

tl.to("#marceline-eye-r", .25, {delay: -.25, morphSVG: {
  shape: "#marceline-scary-eye-r",
  ease: Power3.easeInOut
}});

tl.to("#marceline-scary-eye-l-wrapper", .25, {
  delay: -.25,
  opacity: 1,
  ease: Power3.easeInOut
});

tl.to("#marceline-scary-eye-r-wrapper", .25, {
  delay: -.25,
  opacity: 1,
  ease: Power3.easeInOut
});

tl.to("#marceline-teeth-l", .25, {delay: -.25, morphSVG: {
  shape: "#marceline-scary-teeth-l",
  ease: Power3.easeInOut
}});

tl.to("#marceline-teeth-r", .25, {delay: -.25, morphSVG: {
  shape: "#marceline-scary-teeth-r",
  ease: Power3.easeInOut
}});

tl.to("#marceline-mouth", .25, {delay: -.25, morphSVG: {
  shape: "#marceline-scary-mouth",
  shapeIndex: 9,
  ease: Power3.easeInOut
}});

tl.to("#marceline-scary-teeth", .25, {
  delay: -.15, 
  opacity: 1, 
  ease: Power3.easeInOut
});

tl.to({}, 1, {});
              
            
!
999px

Console