Class BaseTimeline<StaticProps, ChangeableProps, CallbacksTypes>

BaseTimeline is the base class for the Timeline itself. The difference between the coponents is that BaseTimeline has no autonomous animation.

Type Parameters

Hierarchy

Constructors

Properties

_easing: number

Easing progress

_nestedTimelines: {
    id: string;
    timeline: BaseTimeline<NBaseTimeline.IStaticProps, NBaseTimeline.IChangeableProps, NBaseTimeline.ICallbacksTypes>;
}[]

Nested timelines

_progress: number

Global timeline progress

Accessors

  • get isDestroyed(): boolean
  • The module is destroyed

    Returns boolean

  • get isInitialized(): boolean
  • The module is initialized

    Returns boolean

  • get props(): TRequiredModuleProp<StaticProps & ChangeableProps>
  • Current properties

    Returns TRequiredModuleProp<StaticProps & ChangeableProps>

Methods

  • Get Default properties (should be extended)

    Returns DeepRequired<StaticProps & ChangeableProps> & {
        easing: TEasingType;
        hasNestedEasingProgress: boolean;
        scope: number[];
    }

  • Add a DOM event listener

    Type Parameters

    • El extends ListenerElement

    • Target extends keyof HTMLElementEventMap

    • Callback extends ((evt) => void)

    Parameters

    • el: El
    • target: Target
    • callback: Callback
    • Optional options: IAddEventListenerOptions

    Returns IAddEventListener