kute.js/src/interpolation/units.js
thednp 933d61de19 Changes:
* added ESLint and updated all code base 
* updated SVGPathCommander, CubicBezier, shorter-js, minifill
* updated polyfills
* minor CSS fixes
2021-03-30 09:23:29 +00:00

7 lines
164 B
JavaScript

export default function units(a, b, u, v) { // number1, number2, unit, progress
const A = +a;
const B = b - a;
// a = +a; b -= a;
return (A + B * v) + u;
}