Popmotion / popmotion

Simple animation libraries for delightful user interfaces
https://popmotion.io
20k stars 663 forks source link

Question: Is there any documentation on how to do a drag with inertia? #913

Closed patchthecode closed 3 years ago

patchthecode commented 3 years ago

I was looking at how to do this here -> https://popmotion.io/pose/learn/dragging/ But then i just realized that Pose and vue-pose is depracated.

Does this library have a way to the same types of drag as in the link above? and if yes, is there a documentation link?

stokesman commented 3 years ago

https://www.framer.com/api/motion/examples/#drag It's not this library but does use this library and is the successor to Pose.

patchthecode commented 3 years ago

thanks.

patchthecode commented 3 years ago

Hmm.. it looks like that library is specifically for react (not VueJS). Is there a way or any function that this library uses that will be able to do something like this?

stokesman commented 3 years ago

Here's an example of such in Vue. It uses Popmotion for the inertia animation and vue-use-gesture for drag position and velocity calculation.

patchthecode commented 3 years ago

thank you