The issue you're likely facing is that your animation is updating the bar height too quickly, causing it to briefly flash at a very small size before jumping to the next value. To fix this, you need to gradually increase the bar height over time within each animation step, instead of instantly changing it to the full value.