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

What is Framer? Join the Community
Return to index
Taylor Palmer
Posted Dec 19 - Read on Facebook

Is there a way on the Code side to implement the responsive resizing from the Design side?

I know about Align.center etc., but this only fires once, not on resize. Any ideas?

3 Comments

Maximilian Bredow

*Following*

So far, I've been solving this by repeating e.g. Align.bottom(0) in the event but I'm sure there exists a more elegant solution

proxyLayer.onDrag ->
layer.child.y = Align.bottom(0)

Joseph Reni

framercasts uses flexbox: https://www.framercasts.com/

Taylor Palmer

To anyone following this thread: looks like Utils.constrain might be what we're looking for: https://framer.cloud/PpeBk

Read the entire post on Facebook