-
Notifications
You must be signed in to change notification settings - Fork 19
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] Exiting animation triggers at the top despite bottom center position #194
Comments
@natedevxyz can you share with me the JSX (or the whole toast.custom() function call)? Also the rendering. |
Yes, of course. Let me know if you need anything else. toast.custom() function call:
component:
The rendering is the black box you see at the bottom of the GIF. I'm trying to achieve a similar feel to a system toast, like when you copy text to the clipboard. That's why I'm not using the default style. |
@natedevxyz thanks Not that this animation is perfect, but it is at least not fundamentally broken like the one you're experiencing 😆 Screen.Recording.2025-02-07.at.08.31.49.mov |
I have a root layout that has all the app's providers and a
|
@natedevxyz hey mate. I suppose in your example, your .custom() call's second argument is missing the position property as bottom-center. The good thing is that I managed to reproduce this last night and narrowed down where the issue is. This line here is going to the default position, so it moves up like in your animation. A workaround is to set the toast position in the and not override it via the .custom() call. |
Yes, sorry about that, the issue occurs when adding No worries about the timing, I appreciate you taking a look at it. |
Describe the bug
When using the bottom position for a custom toast, the exit animation still affects the top of the screen.
To Reproduce
Expected behavior
The animation moves in the correct direction (down) but starts from the top instead of the bottom.
Screenshots
![](https://private-user-images.githubusercontent.com/100222439/409742011-53d20bb8-a518-4f84-9d04-c483863ef51a.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5MzQ0MzAsIm5iZiI6MTczOTkzNDEzMCwicGF0aCI6Ii8xMDAyMjI0MzkvNDA5NzQyMDExLTUzZDIwYmI4LWE1MTgtNGY4NC05ZDA0LWM0ODM4NjNlZjUxYS5naWY_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxOVQwMzAyMTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03NDExZmQ0OGFlODc2NjRkNTdjNjM1Y2ZiYWZkNzE4NjgwNTNjYmRlMDU2ZTYwNzg2NjMzNDEwZDJlZTc4ZmJmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.EuKzM1Kd_Mm7ltnuGEhFJWcsU73wnx3QwDcpF9rwWtU)
Environment info
The text was updated successfully, but these errors were encountered: