Isometric Sass Library
Source / Download
Created by Morgan Caron
IsometricSass is available on NPM:
npm install --save-dev isometricsass
2D
2d Isometric
<div class="isometric-container">
<div class="isometric">
...
</div>
</div>
@import isometricsass
+grid($size, $lineweight, $color)
<div class="isometric-container">
<div class="isometric">
<div class="grid"></div>
</div>
</div>
@import isometricsass
$size: 1rem
.grid
+grid($size, 1%, mediumorchid)
width: $size*5
height: $size*5
+plane($width, $height, $color)
<div class="isometric-container">
<div class="isometric">
<div class="plane"></div>
</div>
</div>
@import isometricsass
$size: 1rem
.plane
+plane($size, $size, darkcyan)
+border($size, $color)
<div class="isometric-container">
<div class="isometric">
<div class="plane"></div>
</div>
</div>
@import isometricsass
$size: 1rem
.plane
+plane($size, $size, darkcyan)
+border(2px, white)
+edge($depth, $color)
<div class="isometric-container">
<div class="isometric">
<div class="plane"></div>
</div>
</div>
@import isometricsass
$size: 1rem
.plane
+plane($size, $size, darkcyan)
+edge(2px, darkcyan)
+tile(width, height, depth, color)
is equivalent to+plane(width, height, color)
+edge(depth, color)
+shadow($distance, $spacingX, $spacingY)
<div class="isometric-container">
<div class="isometric">
<div class="plane"></div>
</div>
</div>
@import isometricsass
$size: 1rem
.plane
+plane($size, $size, darkcyan)
+shadow($size, $size*.1, $size*.3)
+cube($width, $height, $depth, $color)
<div class="isometric-container">
<div class="isometric">
<div class="cube">
<div></div><div></div><div></div><div></div><div></div><div></div>
</div>
</div>
</div>
@import isometricsass
$size: 1rem
.cube
+cube($size, $size, $size, darkcyan)
top: $X
left: $Y
transform: translateZ($Z)
<div class="isometric-container">
<div class="isometric">
<div class="plane"></div>
</div>
</div>
@import isometricsass
$size: 1rem
.plane
+plane($size, $size, darkcyan)
top: $size
left: $size*2
transform: translateZ($size*.5)
+animation($name, $attribute, $from, $to, $delay, $duration, $options)
<div class="isometric-container">
<div class="isometric">
<div class="plane"></div>
</div>
</div>
@import isometricsass
$size: 1rem
.plane
+animation(planeAnimation, transform, translateZ(0), translateZ($size), 0s, 2s, alternate infinite)
+move($name, $from, $to, $delay, $duration, $options)
is equivalent to+animation($name, transform, $from, $to, $delay, $duration, $options)
+moveShadow($name, $from, $to, $spacingX, $spacingY, $delay, $duration, $options)
<div class="isometric-container">
<div class="isometric">
<div class="plane"></div>
</div>
</div>
@import isometricsass
$size: 1rem
.plane
+moveShadow(planeShadow, 0, $size, .2, .4, 0s, 2s, alternate infinite)
+rotate($name, $from, $to, $delay, $duration)
<div class="isometric-container">
<div class="isometric">
<div class="plane"></div>
</div>
</div>
@import isometricsass
$size: 1rem
.plane
+rotate(planeRotate, 0deg, 360deg, 0s, 7s)
Press F5 to launch the animation
This documentation shows how to use isometry tools on HTML tags. It should be noted that it is also usable on SVG elements.