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

How can I change default animation speed #151

Open
gomttang opened this issue Jul 15, 2021 · 10 comments
Open

How can I change default animation speed #151

gomttang opened this issue Jul 15, 2021 · 10 comments

Comments

@gomttang
Copy link

Hello.
I have trouble with changing animation speed.
There is no options for changing animation velocity and other animation options.
not snapTo Velocity options. I want to know default animation options.
Please let me know. Thanks!

@SolidZORO
Copy link

+1

@Guiw5
Copy link

Guiw5 commented Oct 11, 2021

yes, Im needing this too, I'm using typescript trying to open the drawer from the ref, but the open prop is required and overrides the handler, my idea was using the ref to open and close the drawer externally just to set more velocity on the animation but i cant make it work

@stipsan
Copy link
Owner

stipsan commented Oct 20, 2021

This will be available after I've upgraded to react-spring to v9,I'm currently working on rewriting the internal state machine to fit the new api model ☺️

@ehsankh1370
Copy link

any update?

@junaidashraff
Copy link

anyupdate?

@prophecyengineer
Copy link

+1, Love the lib btw ❤️

@daniel-gener8tor
Copy link

+1

@learnbliss
Copy link

me need this too +1

@apperside
Copy link

Spring 9 has been released, it would be very cool to have it since having a spring based component without being able to controll is is so frustrating :-)

@Agrejus
Copy link

Agrejus commented Jan 2, 2023

To anyone looking for changes in speed/velocity. You can fork the repo and change the mass, tension, and friction to increase the speed. Mass is related to the bounce effect on open or close. Friction & tension are related to speed. I am using this:

mass: .01
tension: 700
friction: 15

Change need to be made in the BottomSheet.tsx file

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

10 participants