Jump to content

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

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

  • Like 1

Share this post

Link to post
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

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.