Web-based animation
AssigneeApple Inc.
InventorsBenoit Marchant, Pierre Frisch, Dimitri Dupuis-Latour
Life of this patent
Estimating the term…
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.
Claims30
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.
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.
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.
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.
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.
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.
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.
Dependencies are inferred from the claim text.