TimelineFloatKeyframe

TimelineKeyframeceramic.TimelineFloatKeyframe (Class)

A keyframe that stores a floating-point value for timeline animations.

Used by TimelineFloatTrack to animate numeric properties over time. Float values are interpolated between keyframes using the specified easing function, creating smooth transitions.

This is one of the most commonly used keyframe types, suitable for animating properties like position, scale, rotation, alpha, and more.

Example usage in a timeline:

var track = new TimelineFloatTrack();
track.add(new TimelineFloatKeyframe(0.0, 0, LINEAR));
track.add(new TimelineFloatKeyframe(100.0, 30, EASE_IN_OUT));
track.add(new TimelineFloatKeyframe(50.0, 60, ELASTIC_EASE_OUT));

Instance Members

value: Float

The floating-point value stored in this keyframe. This value is used as a target for interpolation when animating.


new(value: Float, index: Int, easing: Anonymous): Void

Create a new float keyframe.

Name Type Description
value Float The numeric value for this keyframe
index Int The frame index (time position) for this keyframe
easing Anonymous The easing function for interpolation to the next keyframe

Metadata

Name Parameters
:structInit -