This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Mark Johnston
Posted Feb 01 - Read on Facebook

When I go to position something based on another layer, it always seems to pick the coordinates that the layer was imported in from sketch at even if I have moved that layer to another set of coordinates. Can I not just do the following.

layerToMove.x = layerThatHas moved.x

3 Comments

Benjamin Den Boer

Heya Mark Johnston — this may have something to do with the ordering/placement of your code. After you've repositioned your imported layer, you can definitely store it's new coordinates in a new variable, and then use those to position a new layer. If you're having trouble with this, please share your prototype, I'd love to take a look for you too. :-)

Mark Johnston
Mark Johnston

Did you have any insight into this Benjamin?

Read the entire post on Facebook