Open lambo81 opened 2 years ago
Same error here :(
Just add the forwards
animation direction property like so:
leave: 'fadeOutLeft 300ms ease-in forwards',
For reference, see this line for how react-hot-toast does it: https://github.com/timolins/react-hot-toast/blob/main/site/tailwind.config.js#L24
Thanks! Hopefully the documentation can be fixed for others
@timolins would be nice to fix the example here https://react-hot-toast.com/docs/styling (the last section, Change enter and exit animations
)
Following the toast.custom example on the site, my toast entry animation plays, the exit animation plays, but then after the exit animation is done and the toast has faded out, the toast suddenly appears again in full opacity for a moment before disappearing completely. I am using "@material-tailwind/react": "0.3.4" and "react-hot-toast": "^2.2.0",
here is my code:
I added to my tailwind.config.css