securityos/node_modules/framer-motion/dist/es/easing/utils/get-easing-for-segment.mjs

9 lines
257 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
import { wrap } from '../../utils/wrap.mjs';
import { isEasingArray } from './is-easing-array.mjs';
function getEasingForSegment(easing, i) {
return isEasingArray(easing) ? easing[wrap(0, easing.length, i)] : easing;
}
export { getEasingForSegment };