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

Expose tilt and wobble parameters for more control over animation #244

Open
frederikheld opened this issue Dec 4, 2024 · 1 comment
Open

Comments

@frederikheld
Copy link

Thank you for this amazing library. It works like a charm.

One addition I would wish for is more fine grained control on the animation parameters for tilting and wobbling.

There's the default and there's flat: true to turn it off entirely.

It would be great to actually set values / ranges for tilt and wobble.

Example:

I want to fire "damage numbers". The default tilt and wobble doesn't work well with text that has more than one character as the text will be stretched. It will also go upside down, which is hard to read.

Using the flat option makes the effect super boring. It would be great to have the text flat but with a variation in rotation that matches the angle.

This is just one example to creatively use this library. Directly exposing the tilt and wobble parameters would make room for even more creative uses.

@frederikheld frederikheld changed the title More control over animation Expose tilt and wobble parameters for more control over animation Dec 4, 2024
@frederikheld
Copy link
Author

frederikheld commented Dec 4, 2024

Related issues: #223, #236
Also related: #188

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