"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ifLinearTransition = exports.easeInTransition = exports.linearTransition = exports.transition = exports.ANIMATION_T_MS = void 0;
const ANIMATION_T_S_1 = require("./ANIMATION_T_S");
exports.ANIMATION_T_MS = ANIMATION_T_S_1.ANIMATION_T_S * 1000;
const transition = (props, type) => {
    const transition = props
        .map((prop) => `${prop} ${ANIMATION_T_S_1.ANIMATION_T_S}s ${type}`)
        .join(', ');
    return transition;
};
exports.transition = transition;
const linearTransition = (...props) => {
    return (0, exports.transition)(props, 'linear');
};
exports.linearTransition = linearTransition;
const easeInTransition = (...props) => {
    return (0, exports.transition)(props, 'ease-in');
};
exports.easeInTransition = easeInTransition;
const ifLinearTransition = (animate, ...props) => {
    if (animate) {
        return (0, exports.linearTransition)(...props);
    }
    else {
        return '';
    }
};
exports.ifLinearTransition = ifLinearTransition;
//# sourceMappingURL=animation.js.map