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

What is Framer? Join the Community
Return to index
Chris Camargo
Posted Jul 02 - Read on Facebook

Is there a way to "transfer" momentum from one draggable object to another?

I have a content layer inside of a ScrollComponent. The ScrollComponent is inside of a layer.draggable.

Hierarchy:
- layer.draggable
-- ScrollComponent
--- content

When I throw my layer.draggable up, and it reaches the top of its bounds, I want to transfer any remaining momentum to the ScrollComponent inside, while also enforcing the ScrollComponent's scroll limits and bounce effect.

Can this be accomplished? Happy to post a low fidelity example if this question isn't clear.

2 Comments

Jordan Robert Dobson

This may give you some insight on some techniques... http://iamralpht.github.io/physics/

Chris Camargo

I feel like the difficult part here is not just applying an animation using the velocity of my layer.draggable, but also ensuring that the content layer respects the bounds of the ScrollComponent... this is proving tricky.

Read the entire post on Facebook