# [name]

Runs a keyframe animation as imported from the [page:ColladaLoader].

## Examples

[example:webgl_loader_collada_keyframe loader / collada / keyframe ]

## Constructor

### [name]([page:Object data])

data -- An individual animation object from a the [page:ColladaLoader], e.g. loadedColladaObj.animations[0]
Creates a new keyframe animation and initializes it to the first keyframes.

## Properties

### [property:Object3D root]

The root object of the animation

### [property:Object data]

The data containing the animation

### [property:Array hierarchy]

The objects that are influenced by the animation.

### [property:number currentTime]

The time elapsed since the last start/restart of the animation.

### [property:number timeScale]

How much to scale the speed of the animation. Defaults to 1.

### [property:boolean isPlaying]

Indicates whether the animation is playing. This shouldn't be adapted by user code.

### [property:boolean isPaused]

Indicates whether the animation is paused. This shouldn't be adapted by user code.

### [property:boolean loop]

Set to make the animation restart when the animation ends.

## Methods

### [method:null play]([page:Number startTime])

Starts the animation at the startTime (in seconds) of the animation.

### [method:null stop]()

Stops the animation.

### [method:null update]([page:Float deltaTime])

deltaTime -- The change in time in seconds
Updates the keyframe animation

### [method:Object getNextKeyWith]([page:String sid], [page:Integer h], [page:Integer key])

sid -- The string id
h -- The index in the heirarchy to use
key -- The index of which key to start from
Used internally to traverse the animation

### [method:Object getPrevKeyWith]([page:String sid], [page:Integer h], [page:Integer key])

sid -- The string id
h -- The index in the heirarchy to use
key -- The index of which key to start from
Used internally to traverse the animation
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]