Skip to content

Commit

Permalink
Updating
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry authored and mergatron[bot] committed Feb 13, 2024
1 parent ce959dd commit d3b56fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion packages/framer-motion/src/projection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export { calcBoxDelta } from "./geometry/delta-calc"
* For debugging purposes
*/
import { frame, frameData } from "../frameloop"
import { mixNumber as mix } from "../utils/mix/number"
import { mix } from "../utils/mix"
import { animateValue } from "../animation/animators/js"
export { frame, animateValue as animate, mix, frameData }
export { buildTransform } from "../render/html/utils/build-transform"
Expand Down
3 changes: 0 additions & 3 deletions packages/framer-motion/src/utils/mix/number.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
@param [number]: The progress between lower and upper limits expressed 0-1
@return [number]: Value as calculated from progress within range (not limited within range)
*/
// export const mixNumber = (from: number, to: number, progress: number) =>
// -progress * from + progress * to + from

export const mixNumber = (from: number, to: number, progress: number) => {
return from + (to - from) * progress
}

0 comments on commit d3b56fc

Please sign in to comment.