GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

02Grid-to-screen — the 2:1 formula turning (col, row) into (x, y)

For every tile, x = (col - row) * tileWidth/2 and y = (col + row) * tileHeight/2 feed translate3d, turning a checkerboard grid into a diamond lattice. Coordinates live as CSS custom properties run through calc(), so one size change re-lays the whole grid.

Best forMap tiles, inventory boards

translate3dCSS custom propertiescalc
Grid-to-screen — the 2:1 formula turning (col, row) into (x, y)
Open in a new tab

02 Grid-to-screen — the 2:1 formula turning (col, row) into (x, y) — Measured area 8.835% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · Isometric CSS: 9 True-Projection 3D Dioramas

The post this demo lives in

Isometric CSS: 9 True-Projection 3D Dioramas - preview of all 9 demosIsometric CSS: 9 True-Projection 3D DioramasIsometric css done right: Each cube face shades by a light-angle calc, grid coords map to screen via the 2:1 isometric f See all demos in this post

If you like this effect - similar demos