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

What is Framer? Join the Community
Return to index
Sergey Voronov
Posted Apr 28 - Read on Facebook

Hi) any way to delete the page from pagecomponent? i am using destroy() method, but can't understand what i can with spacing that appeared on the place of destroyed layer, recalculating X is giving really messy results ( http://share.framerjs.com/rc3flut7ek2f/ drag layer and release to destroy it

2 Comments

Floris Verloop

I'd update the position of all remaining layers and animate them to it. See this example, I've created a little function that looks at the remaining children, and animates them to their new position.

Example: http://share.framerjs.com/3daurpge3wz8/

Anton Kartashov

Hey! I've made through pages.updateContent()
http://share.framerjs.com/mj1o8jrxhg58/

Read the entire post on Facebook