Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class Animation

    Object
       |
       +--Animation

class Animation

Defined in animation.js

Field Summary
`Object` | `accelerationProfile` a profile for the speed during the animation
`Object` | `element` pointer to element on which the animation is created
`Object` | `onfinish` a callback which will be called when the animation finishes
`Object` | `onstart` a callback which will be called befor the animation starts
`Object` | `speed` the default speed in percents
`Object` | `style` pointer to style object

Constructor Summary
`Animation (element, speed, onstart, onfinish, accelerationProfile)` To create a animation object.

Method Summary
`Object` | `accelerate(x)` a acceleration profile which will start slow and then accelerate
`Object` | `addAnimation(property, from, to)` to add a animation for a certain property.
`Object` | `checkRun()` to check if the animation is running
`Object` | `constant(x)` the default acceleration profile
`void` | `run()` to start the animation
`Object` | `sine(x)` a acceleration profile which will start slow, accelerate and slow done to the end

Field Detail

### accelerationProfile

    Object accelerationProfile

a profile for the speed during the animation

### element

    Object element

pointer to element on which the animation is created

### onfinish

    Object onfinish

a callback which will be called when the animation finishes

### onstart

    Object onstart

a callback which will be called befor the animation starts

### speed

    Object speed

the default speed in percents

### style

    Object style

pointer to style object

Constructor Detail

### Animation

    Animation(element, speed, onstart, onfinish, accelerationProfile)

To create a animation object. A animation has a counter which will run from 0 to 100. All properties which are added with a start and a end value will be adjusted relative to that counter.

Method Detail

### accelerate

    Object accelerate(x)

a acceleration profile which will start slow and then accelerate

### addAnimation

    Object addAnimation(property, from, to)

to add a animation for a certain property.

Parameters:

`property` - the property which shall be animated

`from` - the start value as string

`to` - the end value as string

### checkRun

    Object checkRun()

to check if the animation is running

### constant

    Object constant(x)

the default acceleration profile

### run

    void run()

to start the animation

### sine

    Object sine(x)

a acceleration profile which will start slow, accelerate and slow done to the end

Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Wed Jan 25 16:46:53 2006