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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.

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.


                <div class="floor isometric">
	<div class="sheet">


                @import "bourbon";

$shift: 80px;
$size: 100px;
$duration: 1.5s;

@mixin material($width, $height, $color) {
	width: $width;
	height: $height;
	border-radius: 2px;

	background: $color;
	// Thickness - the borders actually extend too far, but with such a small thickness it's not really visible.
	border-bottom: 2px solid darken($color, 20%);
	border-right: 2px solid darken($color, 20%);

body {
	background-color: #EDEDED;

.isometric {
	@include transform(rotateX(60deg) rotateY(0deg) rotateZ(45deg) 
		translate(-38%, 38%) scale3d(1, 1, 1)); // translate is just to centre it on the page

.sheet {
	@include material($size, $size, #00CAFE);
	@include animation(lift $duration ease-in-out alternate infinite);
	overflow: hidden;

.floor {
	@include material(auto, auto, #FEFEFE);
	padding: 50px;
	position: absolute;
	left: 50%;
	top: 10%;

@include keyframes(lift) {
	20%, from {
		@include transform(translate(0, 0));
		box-shadow: -1px 2px 2px -2px rgba(black, 0.3);
	80%, to {
		@include transform(translate(-$shift, -$shift));
		box-shadow:  $shift $shift * 1.4  $shift / 2 rgba(black, 0.2), 
			$shift $shift  $shift / 2 rgba(black, 0.2);