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

What is Framer? Join the Community
Return to index
Tianhua Yang
Posted Jul 06 - Read on Facebook

Hi everyone, as a beginner I'm hoping you guys can help me out with this very basic prototype

What I want:
Swipe right on the cells to collpase the right column but also move the scroll point of the cells to the 3rd cell column. I currently achieved this by tapping the top right box, but it seems the "scrolltopoint" doesn't work when swipping...

Thanks in advance for your help!

http://share.framerjs.com/fxkp9nsr350l/

Eric

2 Comments

Eelco Lempsink

Hi Tianhua, you’re almost there! When the swipe ends, it still triggers an animation, overriding the scrollToPoint call. Easiest is to use the state switch (when the the right column collapses) to trigger the scrolling to 3rd column behavior. That way it also does not matter it if was closed by swiping or by pressing the button. http://share.framerjs.com/zgvpitm56t9v/

Tianhua Yang

Hey Eelco Lempsink, thanks a lot for your prompt reply, you guys rock! Using the states event does solve the problem perfectly, However, do you think is there a way that can make the column collapse and scrolling to the point at the same time? Thanks!

Read the entire post on Facebook