element-plus
Version:
> TODO: description
10 lines (9 loc) • 362 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.easeInOutCubic = exports.cubic = void 0;
const cubic = (value) => Math.pow(value, 3);
exports.cubic = cubic;
const easeInOutCubic = (value) => value < 0.5
? exports.cubic(value * 2) / 2
: 1 - exports.cubic((1 - value) * 2) / 2;
exports.easeInOutCubic = easeInOutCubic;