change bar fadeout conditition