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

Make it possible to change "now" #697

Open
J00nz opened this issue Dec 18, 2024 · 0 comments
Open

Make it possible to change "now" #697

J00nz opened this issue Dec 18, 2024 · 0 comments

Comments

@J00nz
Copy link

J00nz commented Dec 18, 2024

As a developer it would be very nice to have a way to override the internal "now" functionality.

I realize that it is possible to send it, or rather "time2, as a argument when invoking methods, but that is a very cumbersome way of doing it.

I propose a way to simply "setNow" that takes a function as a argument and overrides "now" to this.

It would make implementations that modifies the "rate" of time much more convenient to do.

J00nz pushed a commit to J00nz/tween.js that referenced this issue Dec 18, 2024
J00nz pushed a commit to J00nz/tween.js that referenced this issue Dec 19, 2024
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