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

What is Framer? Join the Community
Return to index
Marco Aurélio Rodrigues
Posted Oct 26 - Read on Facebook

Hey guys,
I am trying to hide a button when I am on a specific page using a condition and snapToPage, but I can't figure out how to target the current page on view. I tried the currentPage but for some reason, it did not work. It hides the button permanently. Can anyone give me a hand? Here is a demo I hope this makes sense. Thanks


Tojo Rakoto Ramanantsoa

Hey there, try this : YourPage.on "change:currentPage", ->
currentIndex = YourPage.horizontalPageIndex(YourPage.currentPage)
if currentIndex is (here the number of the page you want)
(here the thing you want the thing to do)

Tojo Rakoto Ramanantsoa
Marco Aurélio Rodrigues

That works Tojo Rakoto Ramanantsoa, thanks a lot.

Read the entire post on Facebook