UNPKG

framer-motion

Version:

An open source and production-ready motion library for React on the web

10 lines (8 loc) • 282 B
import { tweenAxis } from "../utils" describe("tweenAxis", () => { test("tweenAxis", () => { const target = { min: 0, max: 0 } tweenAxis(target, { min: 0, max: 100 }, { min: 300, max: 700 }, 0.5) expect(target).toEqual({ min: 150, max: 400 }) }) })