mix

mix can interpolate between two numbers.

Import

import { mix } from '@popmotion/popcorn';

Usage

mix(0, 100, 0.5); // 50
mix(0, 100, 1); // 100
mix(0, 100, 2); // 200

Types

mix(from: number, to: number, progress: number): number