Skip to content

Question about animating with useFrame vs props #887

Answered by gsimone
Code47X asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, react-spring internally does exactly the same thing you would do in use frame - but with spring physics -, actually calling the host's (line) position vector's set method (line.position.set(newValue))

It will do so every animation frame (in a raf loop)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Code47X
Comment options

@drcmda
Comment options

Answer selected by Code47X
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants