Animated API rotation around the center, just like using originX and originY without animation
See original GitHub issueQuestion
How can i use the animated API to rotate a line around an originX, originY point, just like i would do using:
rotation: angle, originX: someX, originY: someY
where angle would be a continuously changing state to act like animation.
I have opened a more detailed question here in SO , but i didn’t have any luck yet. Any help is really appreciated!
Issue Analytics
- State:
- Created 4 years ago
- Comments:11
Top Results From Across the Web
Animated API rotation around the center, just like using ...
Question How can i use the animated API to rotate a line around an originX, originY point, just like i would do using:...
Read more >transform-origin - CSS: Cascading Style Sheets | MDN
The transform origin is the point around which a transformation is applied. For example, the transform origin of the rotate() function is ......
Read more >React Native Animated Rotation Anchor Point - Stack Overflow
But since there is no option to define the anchor point, the element will rotate around its center, which is the center of...
Read more >Animating Items Around a Point - KIRUPA
When the origin point is in the middle of the element, our element will look to be spinning in-place: To rotate an element...
Read more >The Animate Property - The Framer book
These transforms (scaling, rotating, and skewing) will happen from the frame's transformation origin. By default, this is the center of the frame, but...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@msand Thanks a LOT! This is working. I’m trying to understand the reason of translating X and Y by (±)width / 2 and why this should be the case only on android. Is there some reference to it somewhere?
This seems to work quite fine: https://snack.expo.io/@msand/vengeful-strawberries