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

What is Framer? Join the Community
Return to index
Eric Chao
Posted Jul 23 - Read on Facebook

Hey Everybody!
Currently playing with Framers new PageComponent.

Is there a way to setup an Events.Click on a separate layer to snap to a specific page within the PageComponent?

I tried:
button.on Events.Click,->

It doesn't snap the page, but when I print change:currentPage, it prints two lines in the console. (perhaps the page snaps but then snaps back)

Any help would be great! Thanks!


Raphaël de Courville

“perhaps the page snaps but then snaps back”
Yep, you're exactly right. Add Utils.delay 0 before you call snapToPage()

See Tisho's explanation here:

Eric Chao

Raphaël de Courville just saw this! thanks!

Read the entire post on Facebook