-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Spring] Disable animation on initial render #485
Comments
This would be useful, the following ugly pattern (and equivalents) is emerging in our code bases to avoid animating on first mount
|
if you don't give it "from" isn't that what you want? if it has nothing to go on, it doesn't animate but goes straight to "to". otherwise could i get a codesandbox to look into it? |
Hi @drcmda ! Thank you for amazing tool! Here is the sandbox. I've tried your suggestion but I need to render the component based on the hover state, and it doesn't animate @jacoblearned Thank you for your suggestion, but it got me to the same point where i had to either add a |
I think i actually moved a bit away from the original issue - having only |
I'm trying to disable the animation for the menu item on the initial render and only show it upon hovering the item over. Is there a way to do so with Spring component or it is only available in Transition/setting the initial prop to false ?
The text was updated successfully, but these errors were encountered: