You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there something like a linear "spring", i.e. a motion value x on which I can do x.set(1) and then it linearly changes to 1 from whatever value they had before? I could use a loop like useAnimationFrame, but my guess is that useSpring stops the internal loop when the spring reaches its rest state, so it should be more performant than letting a loop run forever?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there something like a linear "spring", i.e. a motion value
x
on which I can dox.set(1)
and then it linearly changes to1
from whatever value they had before? I could use a loop likeuseAnimationFrame
, but my guess is thatuseSpring
stops the internal loop when the spring reaches its rest state, so it should be more performant than letting a loop run forever?Beta Was this translation helpful? Give feedback.
All reactions