Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

TweenLite rotating more then 360º

Recommended Posts

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? 






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," +

TweenLite.fromTo($(".subdiv"),2, {css:{transform: tiltX(3.1415)}} , {css:{transform: tiltX(-3.14159)}} );




TweenLite.fromTo($(".subdiv"),2, {css:{transform:"rotateX(-179.99deg)"}} , {css:{transform:"rotateX(180deg)"}});

Link to comment
Share on other sites

Hi Burdock :)


​i'm a bit confused , if i understood correctly what you looking for , you can simply rotate more than 360º like this :
  • Like 2
Link to comment
Share on other sites



yes, that does answer my question.


To clarify, I was asking if GSAP Tween had built in functionality for rotation. 

Seeing as passing matrix3d or rotate3d is limited to 360º per loop, I was hoping for a better way.


The built in rotation parameter seem to do the trick. thanks!     

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.