UNPKG

animatable-js

Version:

This package allows easy and light implementation of linear or curved animation in javascript. (Especially suitable in a development environment on web components or canvas.)

13 lines (12 loc) 587 B
import { AnimationStatus } from "./animatable"; /** * Signature for the callback function that a elapsed duration between * the previous frame and the current frame is given. * * Used by `Ticker` class. */ export type TickerCallback = (elapsedDelta: number) => void; /** Signature for the callback function that is called when the animation value changes. */ export type AnimationListener = (value: number) => void; /** Signature for the callback function that is called when the animation status changes. */ export type AnimationStatusListener = (status: AnimationStatus) => void;