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

What is Framer? Join the Community
Return to index
Maciek Ziółkowski
Posted Aug 12 - Read on Facebook

Hello, I have three page components (shoppingList, productsBought, productsNotBought) placed next to each other horizontally. The middle one has few pages initially. I would like to transfer the page from the middle component to either one on the left or right by swiping left or right. I have written this piece of code to do this, but it causes errors:

shoppingList.currentPage.onSwipeLeft(function(){
productsNotBought.addPage(shoppingList.currentPage, 'bottom');
shoppingList.currentPage.destroy();
});

shoppingList.currentPage.onSwipeRight(function(){
productsBought.addPage(shoppingList.currentPaage, 'bottom');
shoppingList.currentPage.destroy();
});

Is there any other way to obtain this effect?

Regards

2 Comments

Krijn Rijshouwer

Hey Maciek Ziółkowski,

Can you share an example project with this code so I can take a look?

Maciek Ziółkowski

Hello Krijn. I use bare Framer JS library on Windows, so I do not have access to Framer Share platform.

Read the entire post on Facebook