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="plate">
	
	<div class="hotdog">
		<svg xmlns="http://www.w3.org/2000/svg" width="610.5" height="560" viewBox="0 0 610.5 560"><path fill="#F07800" d="M478.682 92.043c40.705 40.703 40.695 106.683-.003 147.37L268.54 449.554c-40.698 40.693-106.672 40.71-147.376 0-40.708-40.697-40.7-106.68-.002-147.38L331.3 92.04c40.695-40.7 106.676-40.704 147.382.003z"/><path fill="#9F3621" d="M502.83 79.046c19.54 19.542 18.89 51.874-1.45 72.214L173.32 479.318c-20.34 20.34-52.667 20.994-72.21 1.445l-6.195-6.186c-19.543-19.546-18.886-51.874 1.455-72.214l328.06-328.06c20.337-20.34 52.662-20.993 72.204-1.45l6.196 6.193z"/><path id="mustardpath" fill="none" stroke="#F4C343" stroke-width="25" stroke-linecap="round" stroke-miterlimit="10" d="M472.492 116.362c-6.646 23.175-40.358 20.157-59.28 27.464-18.36 7.095-30.33 23.788-38.4 40.984-9.81 20.917-12.303 45.234-26.718 63.91-13.96 18.105-37.532 18.906-56.484 28.003-18.88 9.07-28.845 26.77-38.85 44.34-12.958 22.767-30.44 28.89-53.3 39.913-39.888 19.24-51.8 49.524-45.342 92.08"/></svg>
	</div>


	<div class="mustard">
		<svg xmlns="http://www.w3.org/2000/svg" width="280.5" height="560" viewBox="0 0 280.5 560"><path fill="#F4C343" d="M147.915 10.06L143.6 7.74l-4.32 2.32-7.31 82.726H155.224M224.66 504.088V371.86c-.66-42.526-24.585-80.732-24.585-80.732-15.617-23.59-14.283-62.13-14.283-62.13V115.38l-42.193 3.986-42.196-3.985v113.618s1.33 38.54-14.285 62.13c0 0-23.92 38.205-24.587 80.73v132.23S61.21 533.32 95.425 545.28h96.344c34.218-11.957 32.89-41.192 32.89-41.192z"/><path fill="#FFF" d="M204.728 472.68c0 11.01-8.926 19.933-19.936 19.933H102.4c-11.01 0-19.933-8.922-19.933-19.934v-89.034c0-11.012 8.922-19.936 19.933-19.936h82.39c11.01 0 19.937 8.924 19.937 19.936v89.033z"/><path fill="#B89531" d="M192.56 109.646c0 10.872-8.814 19.685-19.686 19.685H114.32c-10.872 0-19.686-8.813-19.686-19.684 0-10.872 8.814-19.686 19.686-19.686h58.555c10.872 0 19.685 8.814 19.685 19.686z"/><text transform="translate(95.293 458.732)" fill="#B7B7B7" font-family="'Quicksand-Bold'" font-size="104.225">m</text></svg>
	</div>

</div>


              
            
!

CSS

              
                body {
	background-color: #006e5e;
	width: 100%;
}

.plate {
	margin: 0 auto;
	padding-top: 100px;
	width: 600px;
}

.hotdog {
	margin: 0 auto;
	position: absolute;
	width: 610px;
}

@keyframes apply-mustard {
	0% { offset-distance: 100%;}
	100% { offset-distance: 0;}
}

.mustard svg {
	animation: apply-mustard 3s infinite;
	offset-path: path("M472.492 116.362c-6.646 23.175-40.358 20.157-59.28 27.464-18.36 7.095-30.33 23.788-38.4 40.984-9.81 20.917-12.303 45.234-26.718 63.91-13.96 18.105-37.532 18.906-56.484 28.003-18.88 9.07-28.845 26.77-38.85 44.34-12.958 22.767-30.44 28.89-53.3 39.913-39.888 19.24-51.8 49.524-45.342 92.08");
	offset-rotate: 110deg;
	transform-origin: top;
}

#mustardpath {
	stroke-dasharray: 499;
	stroke-dashoffset: -499;
	animation: dash 3s infinite;
}

@keyframes dash {
	to {
		stroke-dashoffset: 0;
	}
}

              
            
!

JS

              
                // used this code to return the path length
/*var path = document.querySelector('#mustardpath');
var length = path.getTotalLength();

console.log(length);*/
              
            
!
999px

Console