Skip to content

Commit

Permalink
Add forwards to exit animation docs
Browse files Browse the repository at this point in the history
  • Loading branch information
timolins committed Dec 30, 2024
1 parent 08319f2 commit 328aba9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion site/pages/docs/styling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ import { Toaster, ToastBar } from 'react-hot-toast';
toast={t}
style={{
...t.style,
animation: t.visible ? 'custom-enter 1s ease' : 'custom-exit 1s ease',
animation: t.visible
? 'custom-enter 1s ease'
: 'custom-exit 1s ease forwards',
}}
/>
)}
Expand Down
4 changes: 3 additions & 1 deletion site/pages/docs/toaster.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ import { Toaster, ToastBar } from 'react-hot-toast';
toast={t}
style={{
...t.style,
animation: t.visible ? 'custom-enter 1s ease' : 'custom-exit 1s ease',
animation: t.visible
? 'custom-enter 1s ease'
: 'custom-exit 1s ease forwards',
}}
/>
)}
Expand Down

0 comments on commit 328aba9

Please sign in to comment.