UNPKG

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 (15 loc) 354 B
import styled from "styled-components"; const IsometricStyles = styled.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; } `; export default IsometricStyles;