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

What is Framer? Join the Community
Return to index
Joshua Tucker
Posted Jun 11 - Read on Facebook

Thanks Koen Bok for the approval! Looking forward to diving into Framer more.

I do have an initial question: I am attempting to scale an image as I drag it (scale starts at 1, as I drag the layer, it incrementally changes size according to the position of the mouse (say the Y position in this case).

How do I go about doing this? My first attempts tried to capture the Y position of the mouse when the DragStart began and scale it based on the change of Y from the origin but my image goes haywire.



Cemre Güngör

Draggable has an attribute called _deltas. Look inside it, you should be able I grab the last value in that array which gives you the difference in coordinates.

Read the entire post on Facebook