securityos/node_modules/framer-motion/dist/es/utils/wrap.mjs

7 lines
156 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
const wrap = (min, max, v) => {
const rangeSize = max - min;
return ((((v - min) % rangeSize) + rangeSize) % rangeSize) + min;
};
export { wrap };