UNPKG

motion

Version:

The Motion library for the web

15 lines (10 loc) 390 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var popmotion = require('popmotion'); var easing = require('../../dom/utils/easing.cjs.js'); function getEasingForSegment(easing$1, i) { return easing.isEasingList(easing$1) ? easing$1[popmotion.wrap(0, easing$1.length, i)] : easing$1; } exports.getEasingForSegment = getEasingForSegment;