Last active
July 19, 2019 16:25
-
-
Save steveruizok/5652a3d7c79f6a291409e840acd5e33a to your computer and use it in GitHub Desktop.
Page Navigation in Framer X.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Override } from "framer" | |
| import { setCurrentPage } from "./Nav" | |
| export function Page1Button(): Override { | |
| return { | |
| onTap: () => setCurrentPage(1) | |
| } | |
| } | |
| export function Page2Button(): Override { | |
| return { | |
| onTap: () => setCurrentPage(2) | |
| } | |
| } | |
| export function Page3Button(): Override { | |
| return { | |
| // Navigate after a one-second delay | |
| onTap: () => setTimeout(() => setCurrentPage(3), 1000) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment