refactor(progressbar): remove $transition dependency

 * Remove the need to find out the old value.
 * Reorganize code.

Closes #1564