autoClose is based on the progress bar animation
See original GitHub issueIf I write a custom CSS without progress bar animation (let’s say I do not want to use them, so they are always hidden and I don’t care styling them), the toast never closes itself, despite the autoClose
property.
I think this is conceptually wrong, I mean, relying on something visual and completely optional to implement an apparently non-related key feature. Also, this break compatibility with IE9 because it does not support CSS animations events (assuming we care about IE11-).
I can work on a PR to make autoClose
work just with normal setInterval
if you prefer.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
How to end a progress bar animation before max timeout with ...
I have a custom progress bar which i pass the max progress as a parameter. It works properly when the timeout is reached...
Read more >Animated Progress Bars: CSS Tutorial (Day 19 of CSS3 in 30 ...
Create CSS only progress bars that animate. ⭐️Files you need ⭐️ Animated Progress Bars Code: ...
Read more >Why do progress bars animate backwards?
The example progress bars are animating in two ways: (1) the area representing progress is widening, with its right-edge moving to the right;...
Read more >Progress bar - Carbon Design System
A progress bar indicates that the user's request has been received and the application is making progress toward completing the requested ...
Read more >Progress - Bootstrap
Documentation and examples for using Bootstrap custom progress bars featuring support for stacked bars, animated backgrounds, and text labels.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@fkhadra yes that has resolved the issue, thanks.
@vikrant-gembrill if the toast pause when you click outside of the page you have to set
pauseOnFocusLoss
tofalse