Enecss/src/elements/plane.scss

18 lines
441 B
SCSS
Raw Normal View History

2023-02-27 00:26:17 +00:00
// Planes are simple two faced figures with a width and a length.
// The root element must contain to faces: front and back.
.scene figure.plane {
width: var(--width);
height: var(--height);
& > .face {
position: absolute;
width: var(--width);
height: var(--height);
&.front { transform: rotateY( 0deg); }
&.back { transform: rotateY(180deg) translateZ(1px); }
}
}