Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inertia-like friction based animation. #915

Open
jankaifer opened this issue Aug 30, 2021 · 0 comments
Open

Inertia-like friction based animation. #915

jankaifer opened this issue Aug 30, 2021 · 0 comments

Comments

@jankaifer
Copy link

jankaifer commented Aug 30, 2021

[Feature Request]

I'm trying to create custom scroll view with inertia. It works but I'm trying to tweak its feel.

I wan't to achieve these things:

  1. Start velocity should be equal to the end of use dragging velocity (otherwise it's weird).
  2. Be able to tweak the friction of my animation (how quickly will it stop).

I was able to do achieve something similar with power: 0.1 and timeConstant: 150.
For example, if I don't change power it feels really weird.

It might be a bit less intuitive to create snapping with this approach, but IMO it will be easier to use. And most importantly all parameter variants will look somewhat realistic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant