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

What is Framer? Join the Community
Return to index
Dimitrie Hoekstra
Posted Apr 08 - Read on Facebook

hey hey, quick question

Using https://github.com/martenbjork/distribute-layers how can i get it to animate propperly => maintaining the margins while animating?

https://framer.cloud/YlhqX

5 Comments

Davo Galavotti

Quick question, do you need to loop the animation?

Chris Camargo

cc Mårten Björk

Cory Gibbons

Answered on Slack but you should be able to listen for a change event (height in this case) and then run distributeLayers.sameMargin again

Mårten Björk

Morning! :) Thanks for tagning me Chris and thanks for answering Cory. Did you guys solve the issue? Sorry for slow replies, I'm studying math 24/7 so my code won't be as bad :)

Dimitrie Hoekstra

thanks a bunch!

Read the entire post on Facebook