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

What is Framer? Join the Community
Return to index
Văn Công Bằng
Posted Aug 12 - Read on Facebook

When i resize a layer, its content resize, but its bounding box doesn't, right ? So if i resize and change its placement at the same time, framer will use the bounding box's x & y, not the content's, is there anyway i can use the content's x & y ?

2 Comments

Benjamin Den Boer

Hey Van Văn Công Bằng - I'm not entirely sure if I follow - but if you have a content layer, and it's placed within a superLayer, it's x and y position will indeed be relative to its parent layer. If you want to change the x and y position of the content layer, you can simply directly reference it and adjust its properties. The x and y position of the superLayer will be relative to the window. Is that roughly what you meant? :-)

Văn Công Bằng

Benjamin Den Boer I'm not using laptop right now, but let me try to describe my problem again, i have a logo (image) layer, i scale it from 1 to 0.5 and move it from center to top-left edge of the screen (x:0, y:0) at the same time, after the animation ends, the logo is not at the edge, there's a gap between the logo and the edge, look like the layer is scaled but some how framer still gets the x&y before it was scaled.

Read the entire post on Facebook