lundi 5 avril 2021

How to get React-spring 9.0.0 animations working correctly?

I have this simple piece of code where i use react-use-gesture to fire react-spring, the problem is that the animation happens instantly, i mean, it doesnt has the effect of a spring. CodeSandBox: https://codesandbox.io/s/lucid-platform-qgnc2?file=/src/App.js

If you click TEST it will instantly move to the right from x:0 to x:500, that movement should happen in a time lapse not instantly




Aucun commentaire:

Enregistrer un commentaire