Jump to content


new converting coordinates feature and pixi??

Moderator Tag

Recommended Posts

Just watched your new video on the coordinates and relative spaces. Very cool, this is often something I have to deal with.


Will it work with pixi?

Can it be applied to sprites nested in containers?




Link to comment
Share on other sites

Hey macguffin. Most regulars here don't use PIXI too often. Can you throw together a minimal use case demo of how you're hoping it would work using PIXI? My guess is it'd take you less time to make a demo than us and then it'd also potentially be more relevant to you :) 

Link to comment
Share on other sites

Nah, sorry, but the algorithm leverages DOM-specific things like getBoundingClientRect() and element context (nesting) to figure things out. If Pixi offers a similar method, it may be possible to recreate something for that framework but it's definitely not compatible with GSAP's current methods. 

  • Like 2
Link to comment
Share on other sites

You should be able to do something similar to that using a combination of toLocal and toGlobal methods. It's been a while since I've done it, but I know it is possible.

  • Like 4
Link to comment
Share on other sites

Thanks Jack, I suspected as much.


Yeah @OSUblake I do similar stuff with those methods and other various tricks. Just love to drive everything with gsap where possible - it always keeps it so neat.

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