Figma Support Forum

How does the drag interaction on Photo carousel work?

Hello,
I’ve played with the Playground file and got to the Photo Carousel. I don’t understand how it works. The interaction is just set to “On drag”. It doesn’t say “On drag left” or “On drag right”. How does Figma know which way the drag should be applied? I guess I’m missing something but right now it seems like magic to me :slight_smile:

The direction is based on where the object is moved to in the next screen. It can even be connected to two screens at the same time with different directions.

See example from this post: Need swipe gesture - #8 by Gleb

1 Like

Thank you. Is there any documentation on this?

https://help.figma.com/hc/en-us/articles/360039818874-Create-advanced-animations-with-Smart-Animate

1 Like