The TimelineItem class is the base class for any object that can go on a timeline.

Constructor

new (?duration:Float, ?startTime:Float, ?ease:Float ‑> Float)

Variables

currentTime:Null<Float>

Setting this will skip boundary triggering

duration:Float

read onlyendTime:Float

startTime:Float

ease:Float ‑> Float

Methods

onLeftHit (reversed:Bool):Void

onRemoved (from:Timeline):Void

onReset ():Void

onRightHit (reversed:Bool):Void

onUpdate (time:Float, ?lastTime:Float, ?substep:Bool):Void

reset ():Void

inline step (dt:Float, ?substep:Bool):Void

Step to a relative time on the timeline item

Parameters:

dt

Time delta

stepTo (time:Float, ?lastTime:Float, ?substep:Bool):Void

Step to an absolute time on the timeline item

Static methods

staticinline progressFraction (time:Float, start:Float, end:Float):Float