isometric-react
Version:
Isometric styling library made in React with as much flexibility over customization as possible. Rewrite of https://morgancaron.github.io/IsometricSass/ .
16 lines (14 loc) • 487 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const styled_components_1 = require("styled-components");
const keyframes = (name, from, to, attribute) => (0, styled_components_1.css) `
@keyframes ${name} {
from {
${attribute ? `${attribute}: ${from};` : `transform: ${from};`};
}
to {
${attribute ? `${attribute}: ${to};` : `transform: ${to};`};
}
}
`.join("");
exports.default = keyframes;