manrajgrover / microbar

🎉 A zero dependency, 1.2kb g-zipped, lightweight JavaScript Library for slim progress bars for Ajax'y applications. Inspired by YouTube and Github.
MIT License
25 stars 2 forks source link

Re-Usable Microbars #4

Open mbad0la opened 8 years ago

mbad0la commented 8 years ago

I think it would be better if the width property of the microbar is also reset after it's transition finishes. This way, one might reuse it for future purposes without manipulating the width property outside of the microbar object.

manrajgrover commented 8 years ago

There are two possibilities I thought.

  1. Give an option to reset the bar.
  2. Give an option to finish it and remove the bar altogether.

I'm yet to figure out which to keep as default.

mbad0la commented 8 years ago

Resetting the microbar on body after use seems a good idea as it can work out well with single page apps. What say? For all the other microbars, I'm not too sure on what behaviour we might go with.

manrajgrover commented 8 years ago

Lets do nothing by default and give both the options.