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

What is Framer? Join the Community
Return to index
Ee Venn Soh
Posted Jun 08 - Read on Facebook

I am wondering is that possible to add an event listener to a layer and then have it trigger an event? eg: a button that will trigger a SwipeRight event? Something like elem.dispatchEvent(event);

2 Comments

Mårten Björk

Tip: Whenever you feel like doing this, break out your SwipeRight handler into a separate function and have both event handlers call that function instead. Having events trigger other events quickly gets messy. (Sorry for non-answer 😬)

Ee Venn Soh

I wonder if there are any PageComponent examples with on screen "prev", "next" buttons that will trigger the change of the current page.

Read the entire post on Facebook