UNPKG

@popmotion/popcorn

Version:

Utility functions for animation and interactions.

12 lines (11 loc) 605 B
import { RGBA, HSLA } from 'style-value-types'; declare type MixComplex = (p: number) => string; declare type BlendableObject = { [key: string]: string | number | RGBA | HSLA; }; export declare const mixArray: (from: (string | number | RGBA | HSLA)[], to: (string | number | RGBA | HSLA)[]) => (v: number) => (string | number | RGBA | HSLA)[]; export declare const mixObject: (origin: BlendableObject, target: BlendableObject) => (v: number) => { [x: string]: string | number | RGBA | HSLA; }; export declare const mixComplex: (origin: string, target: string) => MixComplex; export {};