Dragging » Snap to Corner Example
Snap to Corner Example
Here I try to recreate the PiP (picture-in-picture) behavior in Apple’s FaceTime app.📘 The Framer Code Guide – 🧲 Dragging open in Framer With modifyTarget() With an onDragEnd() eventTracking position Sending the frame to the correct corner Tracking velocity In FaceTime, wherever you release the PiP on the screen, it will always snap to the nearest corner. […]