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

What is Framer? Join the Community
Return to index
Luke Warda
Posted Oct 21 - Read on Facebook

hey guys, i was wondering if there is a quick way to give a draggable object inertia properties in framer. Thanks!

4 Comments

Koen Bok

The Draggable object has a calculateVelocity() method. If you get that in an Events.DragEnd event, you can build an inertia animation.

Koen Bok

Here is some example code that should work. Just set it up like this:

dragger = new ui.Draggable(myView)
myView.on(Events.DragEnd, endScrollMomentum)

https://gist.github.com/koenbok/7074987

Luke Warda

Thanks Koen Bok i'll give it try! the example works very well on my ipad

Read the entire post on Facebook