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

What is Framer? Join the Community
Return to index
Reony Tonneyck
Posted Apr 12 - Read on Facebook

Anyone have an example anywhere, that snaps an object to the corners when dragging? I'm trying to mimic a small video preview widow snapping to the corners of a viewport. I have it working with dragging to constraints of a layer, but beyond that I'm a bit clueless right now.

I just started using Framer yesterday, but haven't found any examples. I'm surprised actually, seems like a common scenario. This is for a web project by the way. Thanks!


Jonas Treub

Hi Reony! Here is a quick example showing how to use drag velocity to snap to a certain corner.

PS: Your example project is private.

Reony Tonneyck

Oh, I thought I changed it to Public, oops. Thanks for the help! Try now if you'd like

Read the entire post on Facebook