Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] useSpring not considered an animation & animationComplete not triggered #2957

Open
piotrblasiak opened this issue Dec 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@piotrblasiak
Copy link

1. Read the FAQs 👇

2. Describe the bug

When using useSpring with set(), one expects like the docs say that this will start an animation. When the change event is triggered, mySpring.isAnimating() returns false, and no animationComplete event is ever triggered.

3. IMPORTANT: Provide a CodeSandbox reproduction of the bug

https://codesandbox.io/p/sandbox/9vjzhg?file=%2Fsrc%2FApp.js%3A12%2C1

4. Steps to reproduce

Steps to reproduce the behavior:

Open the console and press the button.

5. Expected behavior

Motion value should be marked as animating and animationComplete should be triggered.

6. Video or screenshots

Screen.Recording.2024-12-23.at.10.34.00.mov
@piotrblasiak piotrblasiak added the bug Something isn't working label Dec 23, 2024
@piotrblasiak piotrblasiak changed the title [BUG] useSpring not considered an animation, animationComplete not triggered [BUG] useSpring not considered an animation & animationComplete not triggered Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant