Class

AnimationTrack

AnimationSequencer.AnimationTrack()

Animation track for organizing keyframes

Constructor

# new AnimationTrack()

View Source utils/animationSequencer.js, line 148

Methods

# addKeyframe(keyframe)

Add keyframe to track

Parameters:
Name Type Description
keyframe Keyframe

Keyframe to add

View Source utils/animationSequencer.js, line 163

# duplicate() → {AnimationTrack}

Duplicate track

View Source utils/animationSequencer.js, line 242

Duplicated track

AnimationTrack

# getKeyframesInRange(startTime, endTime) → {Array}

Get all keyframes in time range

Parameters:
Name Type Description
startTime number

Start time

endTime number

End time

View Source utils/animationSequencer.js, line 234

Keyframes in range

Array

# getPropertiesAtTime(time) → {Object}

Get interpolated properties at given time

Parameters:
Name Type Description
time number

Current time

View Source utils/animationSequencer.js, line 181

Interpolated properties

Object

# removeKeyframe(keyframeId)

Remove keyframe from track

Parameters:
Name Type Description
keyframeId string

Keyframe ID to remove

View Source utils/animationSequencer.js, line 172