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,->
page.snapToPage(page2)

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!

2 Comments

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: https://www.facebook.com/groups/framerjs/permalink/687287008065040/?comment_id=689141727879568&hc_location=ufi

Eric Chao

Raphaël de Courville just saw this! thanks!

Read the entire post on Facebook