Skip to content

MoveX

INFO

Inherits: TypedCommand

Move the object along the y axis.

Example:

ts
new MoveX({
  startTime: 0,
  endTime: 1000,
  startValue: 0,
  endValue: 100,
  easing: 3
})

Constructor details

ts
new MoveX({
  startTime,
  endTime,
  startValue,
  endValue,
  easing
})
  • Parameters:

    • startTime (number | string | Timestamp) (Timestamp): The start time of the animation.
    • endTime (number | string | Timestamp | undefined) (Timestamp): The end time of the animation. Defaults to undefined.
    • startValue (number): The starting X position.
    • endValue (number | undefined): The ending X position. Defaults to undefined.
    • easing (Easing | undefined) (Easing): The easing function for the moveX animation. Defaults to undefined.

Properties

Properties inherited from Command:

startTime

Properties inherited from TypedCommand:

endTime, startValue, endValue, easing