CSS3 transform complex rotation unexpected behavior -
with div viewed in perspective , having transformations rotatey(-90deg) rotatex(-180deg)
, prepending rotatez(-90deg)
not give rotation of -90 degrees instead gives rotation of +270 degrees.
the style of div goes from
transform: rotatey(-90deg) rotatex(-180deg);
to
transform: rotatez(-90deg) rotatey(-90deg) rotatex(-180deg);
i'm not sure if behavior related fact when chain 3 rotations in fashion rotate(90deg) rotate(90deg) rotate(90deg)
result not rotation of +270 degrees of -90 degrees.
please see jsfiddle here http://jsfiddle.net/sdg2w/1/
is bug? insight appreciated.
as far can tell, rotating ok. right when 1 rotates clockwise, , other counterclockwise. miss fact when rotating +270, rotates 3/4 of full turn. fiddle 1/4 of full turn.
see other fiddle: [http://jsfiddle.net/vals/sdg2w/2/]. have changed way transformation, can play more easily.
i think confusing since there 180 deg in y axis, rotation inverted (from expect if transform)
Comments
Post a Comment