Avoid hard coded pixels in animation.