ScalarKeyframe constructor

ScalarKeyframe(
  1. double value,
  2. Duration duration
)

Constructs a ScalarKeyframe from the value and offset.

  • value Scalar keyframe value.

  • duration Relative animation duration for reaching the keyframe value. Negative duration value gets clamped to 0.

Implementation

factory ScalarKeyframe(double value, Duration duration) => $prototype.create(value, duration);