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'>
<svg version="1.1" id="Logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	 viewBox="0 0 595.28 841.89" style="enable-background:new 0 0 595.28 841.89;" xml:space="preserve">
<style type="text/css">
	.st0{fill:#FFFFFF;stroke:#000000;stroke-miterlimit:10;}
	.st1{fill:none;stroke:#2E3192;stroke-miterlimit:10;}
	.st2{fill:none;stroke:#010101;stroke-miterlimit:10;}
	.st3{fill:#00B8BE;}
</style>
	<ellipse class="st0" cx="289.72" cy="387.06" rx="230.94" ry="221.74"/>
	<path id="target" class="st1" d="M213.13,420.94c23.93,5.21,44.32,2.72,56.68,0.2c2.34,69.77-9.98,91.55-22.98,97.28
		c-5.11,2.26-22.4,7.35-32.94,22.98c-3.29,4.89-3.21,6.77-3.06,7.66c2.64,16.53,77.33,25.19,85.02,7.66
		c1.84-4.2-0.47-9.19-1.53-11.49c-6.56-14.18-24.08-12.33-29.87-21.45c-3.99-6.27-3.44-19.33,19.91-49.79l72-2.3
		c17.33,21.48,30.63,44.38,22.98,58.98c-6.47,12.34-24.98,13.15-24.51,16.09c0.88,5.48,67.23,13.95,81.19-10.72
		c23.24-41.07-106.97-159.33-88.85-179.23c6.06-6.65,27.9-1.46,31.4-11.49c1.16-3.31-0.28-6.56-0.77-7.66
		c-10.54-23.86-113.43-20.49-117.96,0c-0.85,3.83,1.85,7.79,2.3,8.43c7.73,10.98,27.8,1.61,35.23,9.96
		c6.64,7.45,1.61,27.18-9.19,38.3c-20.9,21.5-70.66,18.19-98.81-7.66c-31.55-28.98-35.92-86.24-4.6-121.79
		c30.57-34.69,82.56-34.44,111.06-17.62c24.11,14.23,29.86,39.43,38.3,36.77c11.4-3.59,12.06-53.12-3.06-58.98
		c-5.93-2.3-11.05,3.37-19.91,7.66c-32,15.48-58.58-13.23-96.51-11.49c-32.81,1.5-65.81,25.41-81.26,56.65
		c-1.02,2.07-23.24,48.97,2.36,93.48C157.3,408.8,197.07,417.45,213.13,420.94z"/>
	<polygon class="st2" points="293.94,461.74 357.89,461.74 325.91,401.23 	"/>
	<ellipse class="st2" cx="297.77" cy="387.06" rx="207.96" ry="211.02"/>
	
				<path id="Map" class="st3" d="M377.92,207.71v256.18c2.69-3.86,7.8-4.67,11.42-1.83c4.55,3.66,8.82,6.6,12.99,9.04
					c4.08,2.34,5.57,7.82,3.43,12.29c-1.49,3.05-4.36,4.88-7.33,4.88c-1.3,0-2.6-0.3-3.9-1.02c-4.92-2.84-9.84-6.2-15.04-10.36
					c-0.65-0.51-1.21-1.32-1.67-1.93v131.95l149.25-36.36v-399.1L377.92,207.71z M414.68,330.52l12.81-31.49l-26.64-9.75
					c-4.36-1.63-6.68-6.7-5.2-11.48c1.49-4.77,6.13-7.31,10.49-5.79l28.12,10.26l9.19-22.55c1.86-4.57,6.78-6.6,10.95-4.57
					c4.18,2.03,6.03,7.42,4.18,11.99l-8.54,21.03l22.37,8.13c4.36,1.63,6.68,6.7,5.29,11.48c-1.11,3.86-4.36,6.2-7.89,6.2
					c-0.84,0-1.76-0.2-2.6-0.51l-23.85-8.74l-13.46,33.11c-1.39,3.35-4.36,5.38-7.61,5.38c-1.11,0-2.23-0.2-3.34-0.81
					C414.68,340.47,412.82,335.09,414.68,330.52z M448.46,496.09c-1.49,0.41-3.06,0.71-4.64,0.91c-3.81,0.61-7.61,0.91-11.42,0.91
					l-2.6-0.1c-4.55-0.2-8.17-4.37-8.08-9.35c0.19-4.98,3.99-9.04,8.54-8.84h2.13c2.88,0,5.94-0.2,8.91-0.71
					c1.11-0.2,2.13-0.41,3.16-0.61c4.46-1.12,8.91,1.83,9.93,6.7C455.61,490.1,452.92,494.97,448.46,496.09z M456.35,363.02
					c-2.04-5.49-4.36-10.77-6.68-15.64c-2.13-4.37-0.65-9.95,3.43-12.29c4.08-2.34,9.1-0.71,11.23,3.76
					c2.6,5.38,5.1,11.17,7.43,17.27c1.76,4.67-0.28,9.95-4.46,11.88c-1.02,0.51-2.13,0.71-3.16,0.71
					C460.72,368.61,457.65,366.58,456.35,363.02z M478.91,469.48c-1.49,3.15-4.36,4.98-7.43,4.98c-1.21,0-2.51-0.3-3.71-0.91
					c-4.08-2.23-5.75-7.72-3.71-12.19c1.95-4.16,3.34-9.24,4.27-14.83c0.84-4.98,5.1-8.23,9.65-7.31c4.55,0.91,7.52,5.59,6.68,10.56
					C483.55,457.08,481.6,463.69,478.91,469.48z M477.89,421.02c-0.37,0.1-0.65,0.1-1.02,0.1c-4.08,0-7.7-3.35-8.17-7.92
					c-0.65-5.49-1.58-11.17-2.69-16.96c-1.02-4.88,1.76-9.75,6.31-10.87c4.46-1.12,8.91,1.93,9.93,6.91
					c1.3,6.4,2.32,12.7,2.97,18.69C485.68,415.84,482.44,420.41,477.89,421.02z M63,606.81l149.16-36.26v-399.1L63,207.71V606.81z
					 M200.83,480.14c-0.09,4.98-3.81,8.94-8.26,8.94c-0.09,0-0.09,0-0.19,0c-7.7-0.1-14.48-2.23-20.14-6.09
					c-3.9-2.74-5.01-8.33-2.6-12.49c2.41-4.27,7.61-5.49,11.42-2.84c3.06,2.13,6.87,3.25,11.42,3.25
					C197.3,471,200.92,475.17,200.83,480.14z M177.44,389.74c0.74-3.05,1.11-5.79,1.11-8.43c0-1.73-0.09-3.45-0.37-5.08
					c-0.84-4.98,2.13-9.65,6.68-10.56c4.55-0.81,8.82,2.34,9.65,7.31c0.46,2.74,0.65,5.59,0.65,8.33c0,4.37-0.56,8.63-1.58,12.9
					l-0.28,1.12c-1.11,3.86-4.36,6.3-7.89,6.3c-0.84,0-1.67-0.1-2.6-0.41C178.46,399.69,176.05,394.51,177.44,389.74z
					 M180.41,429.46c-2.23,6.3-3.81,11.48-4.83,16.05c-0.93,4.16-4.27,7.01-8.07,7.01c-0.65,0-1.3-0.1-1.95-0.2
					c-4.46-1.12-7.24-6.09-6.13-10.97c1.21-5.38,2.97-11.38,5.48-18.49c1.67-4.67,6.5-6.91,10.77-5.08
					C179.95,419.5,182.08,424.78,180.41,429.46z M145.61,343.93l1.39-0.61c6.78-2.44,13.27-3.15,19.12-2.23
					c4.55,0.71,7.61,5.38,6.96,10.36s-4.92,8.33-9.47,7.62c-3.34-0.61-7.15-0.1-11.32,1.42l-0.74,0.3
					c-1.02,0.41-1.95,0.61-2.97,0.61c-3.34,0-6.5-2.23-7.7-5.79C139.29,350.94,141.34,345.75,145.61,343.93z M106.35,386.18
					c2.23-5.38,5.75-11.38,10.21-17.27c2.97-3.86,8.17-4.37,11.69-1.22s3.99,8.94,1.11,12.8c-3.53,4.57-6.31,9.24-7.8,13.1
					c-1.39,3.35-4.36,5.38-7.61,5.38c-1.11,0-2.32-0.2-3.34-0.81C106.35,396.14,104.4,390.75,106.35,386.18z M228.77,457.69
					c1.67-1.12,3.25-2.34,4.73-3.56c3.62-2.95,8.82-2.13,11.6,1.83c2.78,3.96,2.04,9.65-1.67,12.7c-2.23,1.83-4.55,3.56-6.87,5.18
					c-2.32,1.52-5.01,3.15-7.8,4.77v91.93l132.63,36.26V454.44c-0.84,0.3-1.67,0.61-2.6,0.61c-1.86,0-3.71-0.71-5.29-2.23
					c-4.36-4.37-8.26-8.23-12.25-11.99c-3.43-3.25-3.81-9.04-0.84-12.8s8.17-4.16,11.69-0.91c3.06,2.95,6.13,5.99,9.19,8.94V207.71
					l-132.54-36.26V457.69z M303.76,399.79L303.76,399.79c6.31,0.1,12.81,1.73,19.4,5.08c4.18,2.13,5.94,7.52,4.08,11.99
					c-1.39,3.35-4.36,5.28-7.52,5.28c-1.11,0-2.32-0.3-3.43-0.81c-4.55-2.23-8.63-3.35-12.62-3.45c-4.55,0-8.26-4.16-8.17-9.14
					C295.5,403.76,299.22,399.79,303.76,399.79z M256.71,430.27c3.9-4.37,8.07-9.04,12.25-13.21c3.43-3.35,8.63-3.05,11.69,0.71
					s2.78,9.45-0.65,12.8c-3.81,3.76-7.7,8.13-11.42,12.29c-1.67,1.83-3.81,2.74-5.94,2.74c-2.04,0-4.18-0.81-5.75-2.54
					C253.64,439.71,253.55,433.92,256.71,430.27z"/>
</svg>
</div>
              
            
!

CSS

              
                svg{
  width: 100%;
}
.container{
  width: 300px;
  margin: 0 auto;
}
.st0, .st1, .st2 {
  visibility: hidden;
}


              
            
!

JS

              
                MorphSVGPlugin.convertToPath("ellipse, polygon"); 
TweenMax.to("#Map", 1, {morphSVG:'#target', fill:'red'})
// .to("#Map", 1, {morphSVG:'#Logo2', fill:'red'})
// .to("#Map", 1, {morphSVG:'#Logo3', fill:'red'})
              
            
!
999px

Console