Hierarchy

  • Pick<NTimeline.IStaticProps, "easing">
  • Pick<NTimeline.IChangeableProps, "duration">
    • IUseTimelineProps

Properties

duration?: number

Duration of the timeline animation in milliseconds.

Default

1000
easing?: TEasingType

Easing function for the timeline animation.

onEnd?: (() => void)

Type declaration

    • (): void
    • Callback event triggered when the timeline ends

      Returns void

onProgress?: ((data) => void)

Type declaration

    • (data): void
    • Callback event triggered on timeline progress update

      Parameters

      • data: IProgressParameter

      Returns void

onStart?: (() => void)

Type declaration

    • (): void
    • Callback event triggered when the timeline starts

      Returns void