yeet.marigold.town/css/counter.css

71 lines
1.3 KiB
CSS
Raw Normal View History

2023-09-24 18:37:22 +00:00
.wrapper {
2023-09-27 04:21:18 +00:00
width: 800px;
height: 300px;
display: block;
margin: none;
}
.counter {
2023-09-24 18:37:22 +00:00
width: 100%;
2023-09-27 04:21:18 +00:00
height: 100%;
display: block;
perspective: 1200px; /* determines size of the overall element in the final transform */
backface-visibility: visible;
transform-style: preserve-3d;
perspective-origin: 50% 50%;
transform: translateZ(-100px) rotateX(-30deg);
}
.face {
width: 800px;
height: 300px;
display: block;
position: absolute;
}
.vert-side {
width: 200px;
height: 300px;
display: block;
position: absolute;
left: 300px;
}
.horiz-side {
width: 800px;
height: 200px;
2023-09-24 18:37:22 +00:00
display: block;
2023-09-27 04:21:18 +00:00
position: absolute;
top: 50px;
}
.top-shelf {
background-color: #666666;
transform: rotateX(90deg) translateZ(150px);
}
.bottom-shelf {
background-color: #666666;
transform: rotateX(-90deg) translateZ(150px);
}
.right-shelf {
background-color: #333333;
transform: rotateY(90deg) translateZ(400px);
right: 0;
}
.left-shelf {
background-color: #333333;
transform: rotateY(-90deg) translateZ(400px);
}
.front-shelf {
background: rgba(255,255,255,0.3);
transform: translateZ(100px);
}
.back-shelf {
background: rgba(255,255,255,0.8);
transform: rotateY(180deg) translateZ(100px);
2023-09-24 18:37:22 +00:00
}