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="loading-window">
    <div class="car">
        <div class="strike"></div>
        <div class="strike strike2"></div>
        <div class="strike strike3"></div>
        <div class="strike strike4"></div>
        <div class="strike strike5"></div>
        <div class="car-detail spoiler"></div>
        <div class="car-detail back"></div>
        <div class="car-detail center"></div>
        <div class="car-detail center1"></div>
        <div class="car-detail front"></div>
        <div class="car-detail wheel"></div>
        <div class="car-detail wheel wheel2"></div>

    <div class="text">
        <span>Loading</span><span class = "dots">...</span>
              $border-color: #ffe4e1
$background-color: #333
$border-radius-big: 6px
$font-size-header: 16px

$car-color: $border-color
$spin-deg: 36deg

@keyframes spin
		transform: translate(2px, 1px) rotate($spin-deg * 0)
		transform: translate(-1px, -3px) rotate($spin-deg * 1)
		transform: translate(-2px, 0px) rotate($spin-deg * 2)
		transform: translate(1px, 2px) rotate($spin-deg * 3)
		transform: translate(1px, -1px) rotate($spin-deg * 4)
		transform: translate(-1px, 3px) rotate($spin-deg * 5)
		transform: translate(-1px, 1px) rotate($spin-deg * 6)
		transform: translate(3px, 1px) rotate($spin-deg * 7)
		transform: translate(-2px, -1px) rotate($spin-deg * 8)
		transform: translate(2px, 1px) rotate($spin-deg * 9)
		transform: translate(1px, -2px) rotate($spin-deg * 10)

@keyframes speed 
		transform: translate(2px, 1px) rotate(0deg)
		transform: translate(-1px, -3px) rotate(-1deg)
		transform: translate(-2px, 0px) rotate(1deg)
		transform: translate(1px, 2px) rotate(0deg)
		transform: translate(1px, -1px) rotate(1deg)
		transform: translate(-1px, 3px) rotate(-1deg)
		transform: translate(-1px, 1px) rotate(0deg)
		transform: translate(3px, 1px) rotate(-1deg)
		transform: translate(-2px, -1px) rotate(1deg)
		transform: translate(2px, 1px) rotate(0deg)
		transform: translate(1px, -2px) rotate(-1deg)

@keyframes strikes
		left: 25px
		left: -80px
		opacity: 0

@keyframes dots
		width: 0px
		width: 15px

@keyframes fadeIn
		opacity: 0
		opacity: 1

	background: $background-color
	font-family: "Lato", "Lucida Grande", "Lucida Sans Unicode", Tahoma, Sans-Serif

	animation: fadeIn .4s both

	@extend .fadeIn
	background: $background-color
	border-radius: $border-radius-big
	border: 3px solid $border-color
	color: $car-color
	height: 200px
	left: 50%
	margin-left: -150px
	margin-top: -100px
	position: fixed
	top: 50%
	width: 300px
	z-index: 99

		font-size: $font-size-header
		position: absolute
		width: auto
		top: 75%
		left: 38%
		margin: 0 auto
		display: inline-block
		width: 5px
		overflow: hidden
		vertical-align: bottom
		animation: dots 1.5s linear infinite
		transition: 1

	position: absolute
	width: 117px
	height: 42px
	left: 92px
	top: 70px

		position: absolute
		width: 11px
		height: 1px
		background: $car-color
		animation: strikes .2s linear infinite

		top: 11px
		animation-delay: .05s

		top: 22px
		animation-delay: .1s

		top: 33px
		animation-delay: .15s

		top: 44px
		animation-delay: .2s

		position: absolute
		display: block
		background: $car-color
		animation: speed .5s linear infinite

			width: 0
			height: 0
			top: 7px
			background: none
			border: 20px solid transparent
			border-bottom: 8px solid $car-color
			border-left: 20px solid $car-color

			height: 20px
			width: 92px
			top: 15px
			left: 0px

			height: 35px
			width: 75px
			left: 12px
			border-top-left-radius: 30px
			border-top-right-radius: 45px 40px
			border: 4px solid $car-color
			background: none
			box-sizing: border-box

			height: 35px
			width: 35px
			left: 12px
			border-top-left-radius: 30px

			height: 20px
			width: 50px
			top: 15px
			left: 67px
			border-top-right-radius: 50px 40px
			border-bottom-right-radius: 10px

			height: 20px
			width: 20px
			border-radius: 50%
			top: 20px
			left: 12px
			border: 3px solid $background-color
			background: linear-gradient(45deg, transparent 45%, $border-color 46%, $border-color 54%, transparent 55%), linear-gradient(-45deg, transparent 45%, $border-color 46%, $border-color 54%, transparent 55%), linear-gradient(90deg, transparent 45%, $border-color 46%, $border-color 54%, transparent 55%), linear-gradient(0deg, transparent 45%, $border-color 46%, $border-color 54%, transparent 55%), radial-gradient($border-color 29%, transparent 30%, transparent 50%, $border-color 51%),$background-color
			animation-name: spin

			left: 82px
🕑 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.