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

What is Framer? Join the Community
Return to index
Alex Safchuk
Posted Jun 01 - Read on Facebook

Hey everyone. Long time lurker, first time poster. This might be a stupid question but I am stumped. I would like animate an element onto the screen when the scroll component reaches a specific scrollY position. I am getting some weird animation happening when I try it . I know it has to do with the .onMove being called constantly and subsequently calling the if statement at the same time, but I am not sure what to use instead. Thank you in advance if anyone has a chance to take a look and help me out.


George Kedenburg III

in your if statement, you say "shouldAnimate = true" which is actually setting it to true everytime instead of evaluating the condition. try "shouldAnimate is true" or "shouldAnimate == true"

Alex Safchuk

Great catch! That fixed it. Thanks for your quick help.

Read the entire post on Facebook