Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <div class="flex-container">
	<div class="unit">
		<div class="hotdog-unit">
			<div class="bread left"></div>
			<div class="hotdog">
				<div class="mustard"></div>
			<div class="bread right"></div>
		<div class="shadow"></div>
// -------- Basic Styles --------//	
	width w
	height h

	position absolute
	top x
	right y
	bottom x
	left y


	background-color #f4da6b

	display flex
	flex-wrap wrap 
	justify-content center
	align-items center
		margin 0 60px
		text-align center
		margin 2em 0
		font-family 'Fjalla One', sans-serif
		font-style italic
		color #650818
// -------- Mixins --------//	
$hotdog = #f35548
$bread = #EF9B26
$bread_shade = darken($bread, 10%)
$mustard = #FEBE10
$mustard_shade = darken($mustard, 10%)

$size_main = 40px
$shadow_main = 8px

// -------- Styles --------//	
	display flex
	justify-content center
	align-items center
	// transform rotate(-30deg)
	animation floating 2s ease infinite
	box-sizing border-box
	position relative
	z-index 10
	overflow hidden
	size($size_main, $size_main*5)
	border-radius 20px
	background-color $hotdog
	border-left solid $shadow_main darken($hotdog, 10%)

	box-sizing border-box
	position relative
	size(36px, 180px)
	background-color $bread
		margin-right -6px
		border-radius 50px 0 0 50px
		border-left $shadow_main solid $bread_shade
		margin-left -6px
		border-radius 0 50px 50px 0
		border-right $shadow_main solid $bread_shade

	size(100px, 15px)
	border-radius 40%
	margin-top 30px
	margin-left 25px
	background-color rgba(0,0,0,.05)
	animation floating-shadow 2s ease infinite

// -------- Mustard Sauce --------//	
	left - $shadow_main
		content ''
		display block
		background-repeat repeat-y 
		left 48%
		background-size 16px 44px
		background-image radial-gradient(circle at 0px 16px, transparent 6px, $mustard_shade 6px, $mustard_shade 11px, $mustard 11px, $mustard 16px, transparent 16px)
		left $shadow_main
		right 48%
		background-size 16px 44px
		background-image radial-gradient(circle at 16px 16px, transparent 6px, $mustard 6px, $mustard 11px, $mustard_shade 11px, $mustard_shade 16px, transparent 16px)
		background-position 0 22px

//------ Animation  ------//
@keyframes floating {
 0% {
	 transform:rotate(-30deg) translateY(2px);
 50% {
	 transform:rotate(-30deg) translateY(15px);
 100% {
	 transform:rotate(-30deg) translateY(2px);

@keyframes floating-shadow {
 0% {
 50% {
 100% {
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.