Jump to content
Search Community

Default transformOrigin

potatoDie test
Moderator Tag

Go to solution Solved by Carl,

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

Hi all,

 

It seems the default value for transformOrigin has changed (but not the documentation). It broke some of my older animations that expected the origin in the center. While TweenMax 1.11.8 was fine, my animated bicycle was shattered all over the screen with version 1.15 (or gsap/latest).

 

I thought I'd let you know ;)

See the Pen dkLsj by potatoDie (@potatoDie) on CodePen

  • Like 1
Link to comment
Share on other sites

  • Solution

Hi PotatoDie,

 

Welcome to the GreenSock forums.

 

First, that is a great animation you made. Congrats.

 

The reason why things are working (or breaking in your case) a bit differently is because of recent enhancements we have made to CSSPlugin to allow for greater consistency of transformOrigin of SVG elements across browsers. 

 

Please be sure to read this article which explains all the details of what we are doing. http://css-tricks.com/svg-animation-on-css-transforms/(I strongly recommend you watch the video too)

 

I think you will find moving forward that your work is going to be MUCH easier.

 

Diaco offered a great fix and the animation now works in IE! 

 

Keep up the great work.

  • 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.
×
×
  • Create New...