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

What is Framer? Join the Community
Return to index
Andreï Clødiüs
Posted Aug 16 - Read on Facebook

Hey guys! newbie here :)
I think I need some of your help with an issue I can't seem to be able to solve.
I want to be able to snap a layer vertically to 3 different positions when I swipe up or down. (like in the new Apple Maps app in iOS10)
I've created 3 new animations with the 3 positions and have them start on separate swipe events.
Problem is that instead of swiping from animation 1 to animation 2, and then from 2 to 3, it goes straight to the third animation.
Any help is appreciated! Thx a lot!

5 Comments

Jordan Robert Dobson

I think you should be doing your conditional if statements inside of the events instead of the other way around.

Also this all evaluates immediately so it runs those if statements as soon as you refresh and never again.

Jordan Robert Dobson

Also I would use states instead.

Andreï Clødiüs

Thx Jordan! I will try that!

Jordan Robert Dobson

This should solve what you want... let me know if you have any questions: http://jrdn.io/2W2w0m0n3z0s

Andreï Clødiüs

Jordan, this is fantastic, very much appreciated! thank you!

Read the entire post on Facebook