isometric-react
Version:
Isometric styling library made in React with as much flexibility over customization as possible. Rewrite of https://morgancaron.github.io/IsometricSass/ .
21 lines (20 loc) • 634 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const styled_components_1 = __importDefault(require("styled-components"));
const IsometricStyles = styled_components_1.default.div `
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
overflow: visible;
transform-style: preserve-3d;
transform: rotateX(60deg) rotateY(0deg) rotateZ(45deg);
* {
transform-style: preserve-3d;
}
`;
exports.default = IsometricStyles;