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="logo">

	<svg id="donut_svg" x="0px" y="0px" width="500px" height="500px" viewBox="0 0 500 500">

		<!-- donut base -->
		<g id="donut">
			<path fill="#FFEBBF" d="M250,12.5C118.834,12.5,12.5,118.831,12.5,250S118.834,487.5,250,487.5
				c131.169,0,237.5-106.331,237.5-237.5S381.169,12.5,250,12.5z M250,299.915c-27.57,0-49.921-22.347-49.921-49.915
				c0-27.572,22.351-49.923,49.921-49.923c27.572,0,49.918,22.352,49.918,49.923C299.918,277.568,277.572,299.915,250,299.915z"/>
		</g>

		<!-- donut frosting -->
		<g id="frosting">
			<path fill="#F39CC2" d="M433.204,177.319c-19.424-20.103-28.582-46.769-43.438-69.919c-16.524-25.75-65.617-16.817-90.439-29.809
				c-26.26-13.75-42.691-42.205-76.386-36.803c-36.091,5.783-58.862,38.943-88.884,56.501c-14.42,8.436-30.122,14.551-42.892,25.639
				c-27.3,23.697-45.463,62.62-43.125,102.451c1.674,28.485,10.698,55.698,16.106,83.544c4.386,22.579,1.773,51.871,19.612,69.175
				c17.313,16.791,46.608,15.063,67.878,23.035c35.171,13.185,57.312,53.838,94.554,60.485c37.938,6.771,66.279-26.021,98.483-39.527
				c34.238-14.366,68.241-23.183,80.809-60.149c10.246-30.142,2.546-66.34,12.836-96.564
				C448.676,234.937,458.51,203.493,433.204,177.319z M250,299.915c-27.57,0-49.921-22.347-49.921-49.915
				c0-27.572,22.351-49.923,49.921-49.923c27.572,0,49.918,22.352,49.918,49.923C299.918,277.568,277.572,299.915,250,299.915z"/>
		</g>

		<!-- donut sprinkles -->
		<g id="sprinkles">
			<path fill="#FF0033" d="M96.479,214.809c0,3.881-2.823,7.031-6.305,7.031l0,0c-3.48,0-6.304-3.15-6.304-7.031v-21.083
				c0-3.88,2.823-7.03,6.304-7.03l0,0c3.482,0,6.305,3.15,6.305,7.03V214.809z"/>
			<path fill="#3333FF" d="M114.17,148.532c-3.865-0.337-6.755-3.423-6.449-6.89l0,0c0.306-3.472,3.687-6.003,7.552-5.664
				l21.004,1.841c3.865,0.34,6.753,3.426,6.448,6.895l0,0c-0.307,3.463-3.684,6.002-7.553,5.667L114.17,148.532z"/>
			<path fill="#FFFFFF" d="M96.645,291.701c-3.865-0.34-6.753-3.424-6.448-6.891l0,0c0.302-3.475,3.685-6.002,7.552-5.668
				l21.003,1.849c3.868,0.341,6.756,3.428,6.449,6.895l0,0c-0.305,3.464-3.686,5.999-7.552,5.664L96.645,291.701z"/>
			<path fill="#FFFFFF" d="M387.535,343.998c0,3.883-2.819,7.029-6.3,7.029l0,0c-3.481,0-6.304-3.146-6.304-7.029v-21.083
				c0-3.886,2.82-7.028,6.304-7.028l0,0c3.479,0,6.3,3.143,6.3,7.028V343.998z"/>
			<path fill="#FFFF00" d="M342.932,314.854c3.494,1.707,5.08,5.621,3.547,8.75l0,0c-1.523,3.131-5.598,4.283-9.081,2.574
				l-18.938-9.263c-3.486-1.709-5.071-5.626-3.542-8.753l0,0c1.525-3.123,5.595-4.271,9.082-2.57L342.932,314.854z"/>
			<path fill="#3333FF" d="M337,221.975c0,3.883-2.82,7.029-6.304,7.029l0,0c-3.481,0-6.306-3.146-6.306-7.029V200.89
				c0-3.88,2.822-7.025,6.306-7.025l0,0c3.481,0,6.304,3.145,6.304,7.025V221.975z"/>
			<path fill="#FFFFFF" d="M341.406,156.772c-3.865-0.337-6.752-3.422-6.449-6.895l0,0c0.308-3.467,3.688-6.003,7.558-5.659
				l20.998,1.845c3.868,0.339,6.757,3.425,6.448,6.894l0,0c-0.303,3.463-3.684,6.003-7.552,5.662L341.406,156.772z"/>
			<path fill="#FFFF00" d="M404.844,192.854c3.087-2.352,7.297-2.022,9.41,0.742l0,0c2.114,2.76,1.329,6.917-1.753,9.275
				l-16.744,12.805c-3.085,2.361-7.294,2.031-9.411-0.733l0,0c-2.114-2.765-1.332-6.913,1.751-9.277L404.844,192.854z"/>
			<path fill="#FF0033" d="M276.188,328.206c3.316-2.013,7.477-1.229,9.281,1.745l0,0c1.801,2.979,0.575,7.02-2.746,9.029
				l-18.029,10.938c-3.313,2.011-7.471,1.229-9.275-1.743l0,0c-1.805-2.979-0.575-7.019,2.745-9.032L276.188,328.206z"/>
			<path fill="#3333FF" d="M319.045,372.999c2.292-3.13,6.426-4.003,9.239-1.949l0,0c2.806,2.054,3.227,6.263,0.936,9.394
				l-12.447,17.02c-2.299,3.134-6.432,4.008-9.239,1.947l0,0c-2.811-2.054-3.229-6.26-0.938-9.391L319.045,372.999z"/>
			<path fill="#FFFFFF" d="M260.777,414.779c0.423,3.856-2.039,7.289-5.504,7.675l0,0c-3.465,0.378-6.605-2.438-7.026-6.3
				l-2.295-20.963c-0.421-3.858,2.04-7.297,5.5-7.67l0,0c3.463-0.379,6.606,2.438,7.03,6.297L260.777,414.779z"/>
			<path fill="#FF0033" d="M380.892,258.499c3.875,0.217,6.861,3.212,6.662,6.687l0,0c-0.197,3.474-3.496,6.116-7.373,5.897
				l-21.047-1.188c-3.88-0.219-6.856-3.207-6.663-6.688l0,0c0.193-3.475,3.494-6.111,7.368-5.896L380.892,258.499z"/>
			<path fill="#FFFFFF" d="M155.469,192.854c3.081-2.352,7.296-2.022,9.411,0.742l0,0c2.115,2.76,1.332,6.917-1.75,9.275
				l-16.747,12.805c-3.083,2.361-7.296,2.031-9.412-0.733l0,0c-2.115-2.765-1.331-6.913,1.751-9.277L155.469,192.854z"/>
			<path fill="#FFFFFF" d="M238.92,142.483c3.242,2.136,4.312,6.229,2.394,9.127l0,0c-1.919,2.906-6.098,3.528-9.336,1.392
				l-17.597-11.616c-3.239-2.139-4.309-6.228-2.392-9.137l0,0c1.917-2.899,6.097-3.525,9.335-1.38L238.92,142.483z"/>
			<path fill="#FFFF00" d="M185.822,111.912c-2.415,3.04-6.581,3.748-9.309,1.585l0,0c-2.723-2.162-2.978-6.381-0.565-9.422
				l13.113-16.515c2.415-3.042,6.58-3.748,9.307-1.582l0,0c2.725,2.165,2.977,6.377,0.562,9.422L185.822,111.912z"/>
			<path fill="#3333FF" d="M245.836,74.647c-0.269-3.876,2.327-7.212,5.798-7.451l0,0c3.478-0.244,6.509,2.701,6.773,6.572
				l1.467,21.034c0.271,3.868-2.326,7.212-5.798,7.447l0,0c-3.469,0.244-6.504-2.696-6.776-6.568L245.836,74.647z"/>
			<path fill="#FF0033" d="M304.464,132.775c3.082-2.356,7.298-2.031,9.413,0.738l0,0c2.116,2.767,1.33,6.916-1.754,9.272
				l-16.741,12.812c-3.092,2.361-7.303,2.032-9.417-0.733l0,0c-2.113-2.764-1.33-6.917,1.756-9.275L304.464,132.775z"/>
			<path fill="#FFFF00" d="M128.665,352.584c-2.996,2.473-7.218,2.299-9.43-0.387l0,0c-2.214-2.686-1.582-6.866,1.414-9.336
				l16.266-13.414c2.996-2.467,7.219-2.29,9.436,0.396l0,0c2.213,2.688,1.579,6.865-1.416,9.333L128.665,352.584z"/>
			<path fill="#3333FF" d="M148.522,272.611c-1.771-3.451-0.697-7.545,2.399-9.125l0,0c3.101-1.592,7.047-0.084,8.815,3.371
				l9.625,18.764c1.771,3.453,0.696,7.542-2.4,9.129l0,0c-3.101,1.586-7.045,0.077-8.816-3.376L148.522,272.611z"/>
			<path fill="#FFFFFF" d="M214.045,345.992c3.78,0.886,6.207,4.347,5.418,7.729l0,0c-0.789,3.396-4.491,5.43-8.272,4.553
				l-20.536-4.771c-3.782-0.88-6.208-4.335-5.42-7.729l0,0c0.787-3.394,4.493-5.43,8.272-4.549L214.045,345.992z"/>
		</g>
	</svg>

</div>
              
            
!

CSS

              
                body {
	width: 90%;
	margin: 70px 5%;
	padding: 0;
	font-family: "Futura", sans-serif;
}

.logo {
	width: 500px;
	margin: 0 auto;
}

#frosting {
	-webkit-animation: frosting-opacity 2s infinite; /* Safari 4+ */
	-webkit-transform-origin: 50% 50%;
}

#sprinkles path {
	-webkit-animation: sprinkle-spin 1s infinite; /* Safari 4+ */
	-webkit-transform-origin: 50% 50%;	
}

@-webkit-keyframes frosting-opacity {
  0%, 100%   {
  	opacity: 0;
  	transform: rotate(0deg);
  }
  50% {
  	opacity: 1;
  	transform: rotate(360deg);
  }
}

@-webkit-keyframes sprinkle-spin {
  0%, 100%   {
  	transform: rotate(0deg);
  }
  50% {
  	transform: rotate(360deg);
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console