I'm using a page component and I would like to trigger an animation each time the page changes. Any idea why the code below doesn't work?
Have you tired to add...?
And see what it gives you?
interestingly, it's just printing "".
You can also use page.currentPage method mentioned above in tandem with page.horizontalPageIndex, to get the current page in the page index and trigger animations based on what page is active. Attached you'll see an example of how this works. https://framer.cloud/bKgOj/