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

What is Framer? Join the Community
Return to index
Adam Kopec
Posted Feb 06 - Read on Facebook

I want to create a basic photo gallery. Tap on a photo to zoom, tap on the back button to reverse the photo zoom.

I want it to act something like this:

However, I rather just use something like .reverse(), which I've tried here:

I'm having scoping issues (I think?) and can't seem to call .reverse() on that thumbnail image. Any tips?


Matt Hackett

outAnimation is not accessible, since it's defined only in the scope of zoomInAnimationFunc. One approach: have zoomInAnimationFunc return the Animation and then bind the back button event:

Adam Kopec

Matt Hackett OMG yes. You're a beautiful person! Thank ya!

Read the entire post on Facebook