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

What is Framer? Join the Community
Return to index
Chandan Manohar Raikar
Posted Jan 20 - Read on Facebook

Are there any examples using the page action. like when the page 1 is changed perform actions 1 and when page 2 is scrolled perform action 2.?

i am using product_scroller.onchange:page2 but i am getting error
Uncaught SyntaxError: Unexpected token :

i am using framer.js ,javascript

1 Comments

Benjamin Den Boer

Hey Chandan — could you perhaps share your prototype? We can take a look for you. In any case, be sure to write:

product_scroller.on "change:currentPage", →

...followed by your code to target page 2. Within this function you can check which page is the new current one by using product_scroller.currentPage. :-)

Read the entire post on Facebook