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

What is Framer? Join the Community
Return to index
Clint Miller
Posted Aug 11 - Read on Facebook

Just got started with Framer yesterday. I'm trying to trigger an animation or state changed based on what page my prototype is on. The problem appears to be that Framer isn't understanding my page name for some reason. Can someone please help? Thanks.


Rafael Marin

pages.currentPage will return a reference to the actual layer, so to make that conditional work, you should compare it to another reference to a layer, like so:

if pages.currentPage is sketch.MomentsIcon

Rafael Marin

Also, not sure what's the desired effect, but for some tricks you could listen to the pagecomponent's scroll position:

Read the entire post on Facebook