refactor(progressbar): remove $transition dependency

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