UNPKG

motion

Version:

The Motion library for the web

16 lines (15 loc) 732 B
import { AnimationOptions, AnimationOptionsWithOverrides, PlaybackOptions, ValueKeyframesDefinition } from "../types"; import { TimelineDefinition } from "./types"; declare type AnimateStyleDefinition = [ Element, string, ValueKeyframesDefinition, AnimationOptions ]; export declare type TimelineOptions = PlaybackOptions & { duration?: number; defaultOptions?: AnimationOptionsWithOverrides; }; export declare function timeline(definition: TimelineDefinition, options?: TimelineOptions): import("../types").AnimationControls; export declare function createAnimationsFromTimeline(definition: TimelineDefinition, { defaultOptions, ...timelineOptions }?: TimelineOptions): AnimateStyleDefinition[]; export {};