Hi everyone! Pretty simple question here, is there any way to tween a transform-rotate more then 360º.
For anyone not super familiar with 3d transforms:
Simply put, the limitations of matrix3d means you cant rotate more then 360º by passing values more then 1 or less then -1.
Because of this you need to loop from states -1 to 1 if you wish to rotate multiple times.
Is there any built in functionality for this? or is there an easy way to loop through the transform rotation?
Thanks,
Daniel
Example of the 360º transforms I have been using: var tiltX = function(x){ return "matrix3d(1,0,0,0" + ",0,"+ Math.cos(x) +","+ -Math.sin(x) + ",0" + ",0," + Math.sin(x) +","+ Math.cos(x) +",0," + "0,0,0,1)"; };
TweenLite.fromTo($(".subdiv"),2, {css:{transform: tiltX(3.1415)}} , {css:{transform: tiltX(-3.14159)}} );
OR
TweenLite.fromTo($(".subdiv"),2, {css:{transform:"rotateX(-179.99deg)"}} , {css:{transform:"rotateX(180deg)"}});