@looeee You won’t believe it: the problem of the div shifting is because the <canvas>
element is an inline
element, and somehow that affects the div when perspective is applied. Making it display: block
solves the problem! See:
Awesome. now I can move on! Thanks for your visibleHeightAtZDepth
and visibleWidthAtZDepth
functions.