cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

              <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);
Loading ..................