Jump to content

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

HELP - TweenLite incorrectly applying 3D rotation

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

You can view the site here: http://hpbdbrii.meteor.com/


Site is very buggy and in progress, but the core of the issue is visible when you try and open the card by dragging the front cover - the applied Matrix3D transformation seems to shrink it in width, even the this is the code that's updating it in my animation ticker function: 

TweenLite.to(options.el.$left, 0, {
    force3D : true, 
    transformOrigin : 'center right',
    rotationY : currentState.leftY, 

If you open the console you will see I'm outputting the intended rotation of the element. If I set the transformation with jQuery, like so: 

options.el.$left.css('transform', 'rotateY(' + currentState.leftY + 'deg)');

The element will be correctly transformed. Let me know what other information I can provide. 

Link to comment
Share on other sites

Hello styke,

If possible to better help you, can you please setup a codepen demo example. This way we can test your code in a live editable environment.

Here is a great video tut by GreenSock on how to create a codepen demo example


Thanks, this we can better help you by testing your code live.


  • Like 3
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.