"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ifLinearTransition = exports.linearTransition = 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 linearTransition = (...props) => {
    const transition = props
        .map((prop) => `${prop} ${ANIMATION_T_S_1.ANIMATION_T_S}s linear`)
        .join(', ');
    return transition;
};
exports.linearTransition = linearTransition;
const ifLinearTransition = (animate, ...props) => {
    if (animate) {
        return (0, exports.linearTransition)(...props);
    }
    else {
        return undefined;
    }
};
exports.ifLinearTransition = ifLinearTransition;
//# sourceMappingURL=animation.js.map