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

The animation can be too fast in some environments #1

Open
mtshr opened this issue Mar 15, 2024 · 1 comment
Open

The animation can be too fast in some environments #1

mtshr opened this issue Mar 15, 2024 · 1 comment

Comments

@mtshr
Copy link
Owner

mtshr commented Mar 15, 2024

No description provided.

@mtshr
Copy link
Owner Author

mtshr commented Apr 1, 2024

Warning: Be sure always to use the first argument (or some other method for getting the current time) to calculate how much the animation will progress in a frame — otherwise, the animation will run faster on high refresh-rate screens. For ways to do that, see the examples below.

https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame

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