HTML/JS/CSS Isometric Grid with semi-transparent click-through tiles

后端 未结 3 1684
后悔当初
后悔当初 2021-02-03 13:17

I\'m trying to create a web app/game that uses a side-on \'isometric\' view and transparent tiles. I can display them ok (but not great) using a PHP formula that just sets each

3条回答
  •  心在旅途
    2021-02-03 13:49

    You need to use css3 transforms, or the matrix transform in IE.

    The syntax looks something like this:

    -webkit-transform: skew(0deg, -30deg) scale(1, 1.16);
    -moz-transform: skew(0deg, -30deg) scale(1, 1.16);
    

    A couple of good examples:

    http://www.fofronline.com/experiments/cube/index.html

    http://www.useragentman.com/blog/2010/03/09/cross-browser-css-transforms-even-in-ie/

提交回复
热议问题