motion
Version:
The Motion library for the web
14 lines (13 loc) • 649 B
TypeScript
import { AcceptedElements, AnimationListOptions, Easing, MotionKeyframesDefinition } from "../types";
export declare type TimelineSegment = [AcceptedElements, MotionKeyframesDefinition] | [AcceptedElements, MotionKeyframesDefinition, AnimationListOptions];
export declare type TimelineDefinition = TimelineSegment[];
export declare type NextTime = number | "<" | `+${number}` | `-${number}` | `${string}`;
export interface ElementSequence {
[key: string]: ValueSequence;
}
export declare type AbsoluteKeyframe = {
value: string | number | null;
at: number;
easing?: Easing;
};
export declare type ValueSequence = AbsoluteKeyframe[];