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

What is Framer? Join the Community
Return to index
Arturo Goicochea
Posted Oct 20 - Read on Facebook

Hi, first time posting here! Basic question: I hace a centered layer that doesn't occupy the full width. I want it to occupy the full width when clicked (width: screen.width), but when I make this happen (by changing it's state), it grows "to the right". I have x: 0 so it does fill the whole screen correctly, but still, you can tell its "growing" to the right. Any ideas? Thanks! :)

7 Comments

Arturo Goicochea

it works when I use scale instead of modifying the layer's width! :D Any other ideas? :)

Andrew Nalband

Hi Arturo - welcome! It always helps if you can attach your project with this type of question. The technique you're describing works for me without the appearance of growing to the right http://share.framerjs.com/rj7qyqep5nvu/

Arron J Hunt

If you're animating `x` and `width` simultaneously, you shouldn't have any issues (see Andrews example).

Arturo Goicochea

Thanks Andrew, sorry about not including the example. I thought I put the same as you, but for some reason it's not working right :(

http://share.framerjs.com/en306klwno03/

Andrew Nalband

Ah, you got snagged by a tricky one - use a capital "S" on Screen.width http://share.framerjs.com/g8iz5znb48yn/

Arturo Goicochea

That was it! Thanks Andrew! Really appreciate it.

Andrew Nalband

No problem Arturo

Read the entire post on Facebook