What I'm trying to achieve is an indeterminate progress bar that do not freeze when executing background tasks.
I already tried the following ways and all of them causes the progress bar to stop its animation whenever I do another heavy task:
- .gif
- .svg
- the native AngularJs Material indeterminate progress bar (it keeps moving but goes some times backwards and sometimes forwards without making any sense)
- http://dev.gojko.net/web/2015/09/19/material-design-progress-pure-css.html
- How to write CSS keyframes to indeterminate material design progress bar
- https://codepen.io/jsalazart/pen/aJdmvw
- https://codepen.io/holdencreative/pen/vEVbwv
The interesting thing is that I managed to have a spinner, which consists in one single refresh icon with the following animation, and it never freezes during the heavy tasks:
// Refresh animation that never stops.
.spin {
animation : spin 2s linear infinite;
}
@keyframes spin {
0% {
transform : rotate(0deg);
}
100% {
transform : rotate(360deg);
}
}
From what I've been reading, it seems that some CSS3 animations works in a separate browser thread, and also that some other animations in the same thread can continue to work if they do not need to be updated in the meantime, ex: simple images animating like the spinning refresh icon, but I've not been able to achieve the very same effect for an MD indeterminate progress bar.
Any ideas on how to accomplish an unstoppable progress bar? :D
Thanks