-
Notifications
You must be signed in to change notification settings - Fork 2
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
Create useLerp hook #241
Comments
@VictorGa can you provide an example of an implementation? A simple I agree that having these functions ready to use is useful but wouldn't recommend implementing it via a react hook. |
The I currently use something like this:
|
Yes, exactly that. I didn't mean the formula in a hook. Mostly a way to interpolate the values in an easier way using a hook for it, regardless if we use interpolate from gsap or a formula, could be handy. We have an example from @evertmonk. I'll create a PR for it soon. |
Lerping hook for simple transitions. Properties would be initial number, final number, duration, ease method.
The text was updated successfully, but these errors were encountered: