Sahil Posted December 22, 2023 Share Posted December 22, 2023 Hi, Sorry can't provide a demo. I am trying to debug an odd behavior in complex project. We have all our transformOrigin values set in % and nowhere we specifically set transformOrigin in pixels but in one scenario values change from % to px. While changing to pixels, transform origin gets calculated correctly as 50% but gets set as pixels, so if div has 300px width, transform origin gets set to 150px. Is it a known behavior or in any scenario gsap will choose to switch to pixels? Link to comment Share on other sites More sharing options...
GreenSock Posted December 22, 2023 Share Posted December 22, 2023 Hi @Sahil! It's super difficult to troubleshoot or offer advice without a minimal demo, but keep in mind the browser reports calculated values in px only, so I bet that's at the core of whatever problem you're running into. If you need more help, just post a minimal demo and we'd be happy to take a peek and offer some advice. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now