# US 2008/0303828 A1 · Web-based animation

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2008/0303828 A1
- Document ID: US20080303828A1
- Status: Published application
- Kind: A1
- Application number: 11/811,292
- Filed: 2007-06-08
- Published: 2008-12-11
- Earliest claimed: 2007-06-08
- Assignees: Apple Inc.
- Inventors: Benoit Marchant; Pierre Frisch; Dimitri Dupuis-Latour
- Web page: https://patentgrep.com/patent/US20080303828A1

## CPC

- G06T 13/00: Animation
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Approaches providing web-based animations using tools and techniques that take into account the limited capabilities and resources available in the web environment are disclosed. In some embodiments, such web-based animations are implemented in JavaScript.

## Claims

### Claim 1

A method for triggering animation events, comprising:
setting an animation timer to a maximum rate;
using the animation timer to control the timing of two or more animations running at different frame rates, including by triggering an animation event for at least one of the two or more animations on a multiple of a period of the animation timer, wherein the multiple is based on a frame rate of the at least one of the two or more animations.

### Claim 2 (depends on 1)

A method as recited in claim 1, wherein the maximum rate comprises a maximum frame rate.

### Claim 3 (depends on 1)

A method as recited in claim 1, wherein the maximum rate comprises a maximum rate of the animation timer.

### Claim 4 (depends on 1)

A method as recited in claim 1, wherein the maximum rate comprises a highest frame rate among the respective frame rates of the two or more animations.

### Claim 5 (depends on 1)

A method as recited in claim 1, wherein the maximum rate of the animation timer is much higher than a maximum frame rate associated with animations.

### Claim 6 (depends on 1)

A method as recited in claim 1, wherein the animation timer is associated with a browser configured to render the two or more animations.

### Claim 7 (depends on 1)

A method as recited in claim 1, wherein the animation timer comprises an instance of a JavaScript class.

### Claim 8

A method for triggering a linked animation, comprising:
configuring a first animation to start at a specified progress mark of a second animation;
checking, at the start of a refresh cycle, the length of an array, the length of which indicates how many animations are currently being rendered;
recognizing based at least in part on a change in the length of the array that the first animation has been triggered; and
including the first animation in the refresh cycle.

### Claim 9 (depends on 8)

A method as recited in claim 8, wherein the array is used at least in part to track animations that share a common frame rate.

### Claim 10 (depends on 8)

A method as recited in claim 8, wherein the first animation and second animation are defined in JavaScript.

### Claim 11 (depends on 8)

A method as recited in claim 8, wherein the first animation and second animation are rendered by a browser.

### Claim 12

A method for determining an end state of a style property animation of a display page element being animated, comprising:
creating a copy of the display page element;
applying to the copy all end state classes that define the end state style of the display page element; and
determining the end state of the style property animation by invoking getComputedStyle on the copy.

### Claim 13 (depends on 12)

A method as recited in claim 12, wherein the style property animation is defined in JavaScript.

### Claim 14 (depends on 12)

A method as recited in claim 12, wherein the style property animation is rendered by a browser.

### Claim 15 (depends on 12)

A method as recited in claim 12, wherein the style is defined using CSS.

### Claim 16

A method for performing style property animation updates associated with a frame of a display page element animation, comprising:
concatenating all style property animation updates associated with the frame in a single string; and
applying a style update to the frame using the string.

### Claim 17 (depends on 16)

A method as recited in claim 16, wherein applying the style update includes applying the style update inline.

### Claim 18 (depends on 16)

A method as recited in claim 16, wherein the style of the frame is updated using the cssText property or setAttribute (“style”,newState) where newState is the new css state as a string.

### Claim 19 (depends on 16)

A method as recited in claim 16, further comprising grouping all style property animation updates associated with the frame.

### Claim 20 (depends on 16)

A method as recited in claim 16, wherein the display page element animation is rendered by a browser.

### Claim 21 (depends on 16)

A method as recited in claim 16, wherein the style is defined using CSS.

### Claim 22

A method for controlling an animation, comprising:
determining for each of a plurality of frames a corresponding desired progress point; and
passing to an animation software object configured to provide the animation, as an animation curve argument, a custom animation curve object or function configured to provide to the animation software object the output of a step or similar function, such that the progress point returned by the animation curve object at any time is one of a finite number of values, each corresponding to a desired progress point of a frame with which it is associated.

### Claim 23

A system for triggering animation events, comprising:
a processor configured to:
set an animation timer to a maximum rate;
use the animation timer to control the timing of two or more animations running at different frame rates, including by triggering an animation event for at least one of the two or more animations on a multiple of a period of the animation timer, wherein the multiple is based on a frame rate of the at least one of the two or more animations; and
a memory coupled to the processor and configured to provide instructions to the processor.

### Claim 24 (depends on 23)

A system as recited in claim 23, wherein the maximum rate comprises a highest frame rate among the respective frame rates of the two or more animations.

### Claim 25 (depends on 23)

A system as recited in claim 23, wherein the maximum rate of the animation timer is much higher than a maximum frame rate associated with animations.

### Claim 26

A computer program product for triggering animation events, the computer program product being embodied in a computer readable medium and comprising computer instructions for:
setting an animation timer to a maximum rate;
using the animation timer to control the timing of two or more animations running at different frame rates, including by triggering an animation event for at least one of the two or more animations on a multiple of a period of the animation timer, wherein the multiple is based on a frame rate of the at least one of the two or more animations.

### Claim 27 (depends on 26)

A computer program product as recited in claim 26, wherein the maximum rate comprises a highest frame rate among the respective frame rates of the two or more animations.

### Claim 28 (depends on 26)

A computer program product as recited in claim 26, wherein the maximum rate of the animation timer is much higher than a maximum frame rate associated with animations.

### Claim 29 (depends on 26)

A computer program product as recited in claim 26, wherein the animation timer is associated with a browser configured to render the two or more animations.

### Claim 30 (depends on 26)

A computer program product as recited in claim 26, wherein the animation timer comprises an instance of a JavaScript class.
