Adjust for screen resize in animations.