For example, I apply to my element perspective(200px), transform: scale(1.5); and translateZ(100px) properties. So, how can I calculate what size will have my transformed element? Is there any formula?
I think this question is more relevant when we use perspective together with translateZ, because mainly in these situations I don't know for sure how my element will look like.
.green {
width: 300px;
height: 300px;
outline: 1px solid black;
background: yellowgreen;
margin: 50px;
transform-origin: 400px 0px;
transform: perspective(200px) scale(1.5) translateZ(100px);
}
<div class="green"></div>