Repository navigation
Rotate animation will rebound at 0deg - 360deg or 360deg - 0deg #1235
Answered
by
raycaster08
ethanruiyu
asked this question in
Q&A
|
codesandbox: https://codesandbox.io/s/confident-star-fmbz1?file=/src/mobx.js As you can see, It will rebound at 0deg - 360deg I want to achieve like this effect iShot2021-11-18.00.15.42.movIt bothered me for a long time 😭 |
Answered by
raycaster08
Feb 24, 2023
Replies: 2 comments 3 replies
|
I am not certain if there are any simple solutions from Konva or Why do you need to limit angle? |
2 replies
|
Modify the original value based on the difference |
1 reply
Answer selected by
ethanruiyu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Modify the original value based on the difference
https://codesandbox.io/s/flamboyant-ioana-5zems1?file=/src/App.js