animation of bar looks so much better with new easing function