Patent ID: 7477254

Claim:
A computer-implemented method for transitioning between a first animation of a user interface element and a second animation of the user interface element, the method comprising: starting the first animation of the user interface element; wherein the first animation of the user interface element includes adjusting a value of a property of the first user interface element; wherein the property is a size property that affects a size of the user interface element when the value is adjusted; setting a handoff behavior that specifies what actions to take when the second animation is started and the first animation is still adjusting the value of the size property of the user interface element; detecting a trigger for the second animation while the first animation is running, wherein the first and second animations adjust the value of the size property of the user interface element; wherein the trigger is an event generated in response to a user interaction with the user interface element; recalculating a value of the property of the user interface element during the running of the first animation; storing the recalculated value of the property each time the value is recalculated; and causing the second animation to run using the specified handoff behavior including using the recalculated value.