Skip to content

Fade

INFO

Inherits: TypedCommand

Change the opacity of the object (how transparent it is).

Example:

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

Constructor details

ts
new Fade({
  startTime,
  endTime,
  startValue,
  endValue,
  easing
})
  • Parameters:
    • startTime (string | number | Timestamp) (Timestamp): The start time of the animation.
    • endTime (string | number | Timestamp | undefined) (Timestamp): The end time of the animation. Defaults to undefined.
    • startValue (number): The starting opacity value.
    • endValue (number | undefined): The ending opacity value. Defaults to undefined.
    • easing (Easing | undefined) (Easing): The easing function for the rotate animation. Defaults to undefined.

Properties

Properties inherited from Command:

startTime

Properties inherited from TypedCommand:

endTime, startValue, endValue, easing