Simplify scaling animation code.