Jump to content
GreenSock

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

Default transformOrigin

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

Link to comment
Share on other sites

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

Thank you Carl and Diaco. That's perfect. Thanks also for the links!

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.
×