UNPKG

animare

Version:

Advanced animation library for modern JavaScript.

19 lines 797 B
import type { AnimationInfo, AnimationPreparedOptions } from './types.js'; export default class Animation { #private; /** The end point in time, including delays and repeats, in milliseconds. */ endPoint: number; /** The reference to the prepared animation values. */ animationRef: AnimationPreparedOptions; get info(): AnimationInfo; constructor(animation: AnimationPreparedOptions, previousTimeline: Animation | undefined, index: number); Setup(): void; Update(elapsedTime: number): void; /** * Set or update the animation values. * * ⚠️ **Warning** ⚠️ This method will throw an error if the animation values are invalid. */ Set(animation: Partial<AnimationPreparedOptions>): void; } //# sourceMappingURL=animation.d.ts.map