How to integrate react-spring with requestAnimationFrame API? #1994
Unanswered
jeremygottfried
asked this question in
Support
Replies: 2 comments
-
The library uses RAF. We've created a abstraction class around it called rafz. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@jeremygottfried, did you find any useful resources for this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Background
I've always used the FLIP animation technique (first last invert play), which relies heavily on
requestAnimationFrame
. More info - https://aerotwist.com/blog/flip-your-animations/Question
The answer to this question might seem obvious to others, but the docs don't seem to mention
requestAnimationFrame
at all. I was wondering if react-spring automatically usesrequestAnimationFrame
? If not, how would I integrate it withuseSpring
?Beta Was this translation helpful? Give feedback.
All reactions