Interface IUseAnimationFrameSyncProps<T>

Type Parameters

Hierarchy

  • IUseAnimationFrameSyncProps

Properties

Properties

data: T

The initial data for the animation frame, with properties to animate.

ease?: number

The easing factor for the interpolation. Defaults to 0.1.

onSet?: ((data) => void)

Type declaration

    • (data): void
    • Callback function to be called on each update with the target values.

      Parameters

      • data: T

      Returns void

onUpdate: ((data) => void)

Type declaration

    • (data): void
    • Callback function to be called on each update with the current interpolated values.

      Parameters

      • data: T

      Returns void