We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Can rotation be animated?
The text was updated successfully, but these errors were encountered:
It should be easy to animate it, just rotate it slowly in an X amount of time
Sorry, something went wrong.
@pwnedev Can you give the specific implementation code?
I tried to complete the rotation animation
let id = null function rotateAnimation(plus) { let pos = rotate clearInterval(id) id = setInterval(frame, 0) function frame() { if (pos === rotate + (plus ? -90 : 90) ) { clearInterval(id) setRotate(pos % 360) } else { plus ? pos-- : pos++ setRotate(pos) } } }
No branches or pull requests
Can rotation be animated?
The text was updated successfully, but these errors were encountered: