Fix jumping when animating border