1. Support that set a Breakpoint .
  2. Support that play animation base on Breakpoints.

Hierarchy

  • BreakpointAnimation

Implements

  • Partial<Extension>
  • BreakpointAnimationConfig

Constructors

Properties

autoScroll: boolean
breakpoints: Breakpoint[]
playAnimation: boolean
scrollContainer: HTMLElement | Window
scrollDuration: number
stepIn?: (() => Promise<void>)

Type declaration

    • (): Promise<void>
    • Fill when short-night is blocking. Step in a breakpoint.

      Returns Promise<void>

timeoutCounter: ((point: Breakpoint, config: Partial<BlockConfig>) => number)

Type declaration

    • (point: Breakpoint, config: Partial<BlockConfig>): number
    • Parameters

      • point: Breakpoint
      • config: Partial<BlockConfig>

      Returns number

defaultAnimationBreakpoints: Breakpoint[] = ...

See

BreakpointAnimationConfig.playAnimation

Accessors

Methods

  • Blocking at a breakpoint util next called

    Parameters

    • point: Breakpoint
    • config: Partial<BlockConfig> = {}

    Returns Promise<void>

  • Count a number that be used scroll to focus when play animation.

    Parameters

    • config: Partial<BlockConfig>

    Returns null | number

Generated using TypeDoc