I'm trying to get the perspective view-angle with the following, of a cube:
http://jsfiddle.net/TrySpace/JvFSQ/5/
But I doesn't do what I expected, I want the actual view-angle to be changed.
So when transformOrigin: Xpos+'%'+Ypos+'%'
is 100%-100%. I expected the viewing angle to be from the bottom-right corner, and see the right/bottom sides of the cube.
But all it seems to do is zoom in on the cube.
I am using jstransit, because setting the .css( perspective-origin: X% X% )
through jQuery doesn't seem to do anything.
I guess I'm not understanding 3d CSS fully yet.
Can anyone see where I'm going wrong?
(Update1: when I edit the first <section>
: and set: transform: rotateY(1deg) rotateX(1deg)
, it seems to do even less. As if the transform had to happen, for the view-angle to change? http://jsfiddle.net/TrySpace/JvFSQ/6/)
(Update2: so, when I set Y&X to 90deg, I get somewhat what I want, although in reverse. Where am I going wrong in my thinking? http://jsfiddle.net/TrySpace/JvFSQ/8/)