RetroDECK-Website/css/carousel.css
2024-10-16 13:18:08 -04:00

80 lines
1.1 KiB
CSS

.stack {
position: relative;
display: flex;
padding-right: 30px;
}
#features .row:nth-child(odd) .stack {
padding-right: 30px;
}
.screenshot {
position: relative;
/* transition: bottom 400ms; */
}
.screenshot:nth-child(3) {
z-index: 4;
left: -200%;
cursor: pointer;
}
.screenshot:nth-child(2) {
z-index: 3;
left: calc(-100% + 10px);
bottom: 10px;
}
.screenshot:nth-child(1) {
z-index: 2;
left: 20px;
bottom: 20px;
}
/* @keyframes lower {
from {
animation-timing-function: ease-in-out;
}
to {
transform: translate(-10px, 10px);
}
}
@keyframes swap {
50% {
z-index: 3;
}
67% {
transform: translate(35px, -125%) rotate(2.5deg);
z-index: 1;
}
100% {
transform: translate(30px, -30px) rotate(0deg);
z-index: 0;
}
} */
@keyframes fade-out {
0% {
/* z-index: 3; */
bottom: 0;
opacity: 1;
}
100% {
/* z-index: 0; */
opacity: 0;
bottom: -30px;
}
}
@keyframes fade-in {
0% {
/* z-index: 3; */
bottom: 0;
opacity: 10px;
}
100% {
/* z-index: 0; */
opacity: 1;
bottom: 20px;
}
}