Added the fading out functionality of the charging bar.