I would like to do the following: Given a container with perspective and an inner element with a translateZ value I'd like to "pull it up" with translateY in order to visually touch the top of the surrounding container: http://jsfiddle.net/8R4ym/129/
Is there some kind of formula that, given the perspective value of a container, the width and height of an element and it's Z-translation I can get to that kind of "top" calculation? I have been playing around with it but I can't seem to find some rules for it, as it seems that those are all variables.
Thanks for any help.