@gannochenko/ui.styled-components
Version:
<!-- PROJECT SHIELDS --> <!-- *** Reference links are enclosed in brackets [ ] instead of parentheses ( ). *** See the bottom of this document for the declaration of the reference variables *** for contributors-url, forks-url, etc. This is an optional, co
11 lines • 370 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.transition = void 0;
const transition = (what, duration) => {
if (duration <= 0) {
return '';
}
return `transition: ${what} ${typeof duration === 'number' ? `${duration}s` : duration} ease`;
};
exports.transition = transition;
//# sourceMappingURL=transition.js.map