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

What is Framer? Join the Community
Return to index
Cindy Touillet
Posted Dec 30 - Read on Facebook

Hi everyone,

I wanted to know if anyone has a solution for my problem.
In fact, in page 2 the fruits are posititioned in a certain way and I would like to be able to change the quantity of fruits, and therefore grow larger by repelling.
I look for an algorithm so that when there is a "pinchable" action, the layers (here the fruits) don't overlap but repel each other.
Thank you for your help !

(I'm sorry for my english)

1 Comments

Josh Ackerman

If I understand what you mean correctly, you might want to check out force layouts in d3.js. Here is a relevant example https://bl.ocks.org/mbostock/7881887.

Here is a working example of a force layout in Framer I implemented awhile ago. http://share.framerjs.com/vx817n41jf50/

Read the entire post on Facebook