1
Fork 0
mirror of https://github.com/Steffo99/steffoweb.git synced 2024-11-25 09:34:31 +00:00
steffoweb/components/FlipPanel.module.css

63 lines
1.1 KiB
CSS
Raw Normal View History

2023-05-29 03:23:51 +00:00
@media (max-width: 492px) {
.flipPanelContainer {
max-width: 100%;
}
}
2023-05-28 23:18:24 +00:00
2023-05-29 03:23:51 +00:00
@media (min-width: 492px) {
.flipPanelContainer {
max-width: 476px;
}
}
.flipPanelContainer {
2023-05-28 23:18:24 +00:00
display: flex;
justify-content: stretch;
align-items: stretch;
position: relative;
}
.flipPanelContainer .flipPanelContainer {
max-width: unset;
}
.flipPanel {
height: 100%;
transition-property: transform, z-index, opacity;
transition-duration: 1s, 1s, 0.5s;
transition-delay: 0s, 0s, 0s;
}
.flipPanelFront {
transform: rotateY(180deg);
z-index: 0;
user-select: none;
2023-05-28 23:20:04 +00:00
opacity: 0;
2023-05-28 23:18:24 +00:00
transition-delay: 0s, 0s, 0.5s;
}
.flipPanelFrontVisible {
transform: rotateY(0);
z-index: 1;
user-select: auto;
opacity: 1;
transition-delay: 0s, 0s, 0s;
}
.flipPanelBack {
transform: rotateY(180deg);
margin-left: -100%;
z-index: 0;
user-select: none;
2023-05-28 23:20:04 +00:00
opacity: 0;
2023-05-28 23:18:24 +00:00
transition-delay: 0s, 0s, 0.5s;
}
.flipPanelBackVisible {
transform: rotateY(0);
z-index: 1;
user-select: auto;
opacity: 1;
transition-delay: 0s, 0s, 0s;
}