Am I crazy in thinking the axis directions or backwards for rotateX() and rotateY()?
So, as far as I was tracking, when looking at something such as
rotateY(), the "X" and "Y" were referring to the their respective axis.
For example, to move something to a different place to the right, you would use
translateX(), and use a parameter that when in that direction. Basically, "X" axis functions will move things left and right; side to side.
translateY() on the other hand would do basically the same thing except things would move UP AND DOWN along the "Y" axis (since the "Y" axis goes up and down).
However, in this video we are using
rotateY(), and that is rotating things side to side, when I was expecting them to rotate up and down. When I switch over to
rotateX() it of course is the opposite.... It rotates up and down instead of side to side. Why is that so different here and using
Amber Lim4,706 Points
Hi Michael! You answered it yourself!
rotateX() rotates an image AROUND the x-axis/horizontally while
rotateY() rotates it AROUND the y-axis/vertically. :-)