RetroDECK-Website/css/carousel.css

72 lines
990 B
CSS
Raw Normal View History

2024-10-16 15:43:00 +00:00
.stack {
position: relative;
display: flex;
2024-10-25 12:55:20 +00:00
padding-right: 45px;
2024-10-16 15:43:00 +00:00
}
#features .row:nth-child(odd) .stack {
2024-10-25 12:55:20 +00:00
padding-right: 45px;
2024-10-16 15:43:00 +00:00
}
.screenshot {
position: relative;
2024-10-16 18:42:47 +00:00
transition: bottom 250ms;
2024-10-16 15:43:00 +00:00
}
.screenshot:nth-child(3) {
z-index: 4;
left: -200%;
}
.screenshot:nth-child(2) {
z-index: 3;
2024-10-25 12:55:20 +00:00
left: calc(-100% + 15px);
bottom: 15px;
2024-10-16 15:43:00 +00:00
}
.screenshot:nth-child(1) {
z-index: 2;
2024-10-25 12:55:20 +00:00
left: 30px;
bottom: 30px;
2024-10-16 15:43:00 +00:00
}
2024-10-16 18:42:47 +00:00
@keyframes shift {
50% {
2024-10-25 12:55:20 +00:00
transform: translate(-15px, 15px);
2024-10-16 18:42:47 +00:00
}
to {
transform: translate(0, 0);
}
}
/*
Commented lines make the animation more flexible
with different numbers of slides
*/
2024-10-16 17:18:08 +00:00
@keyframes fade-out {
0% {
/* bottom: 0; */
2024-10-16 17:18:08 +00:00
opacity: 1;
}
100% {
opacity: 0;
/* left: calc(-200% - 10px); */
/* bottom: -30px; */
2024-10-16 18:42:47 +00:00
scale: 1.05;
2024-10-16 17:18:08 +00:00
}
}
@keyframes fade-in {
0% {
2024-10-25 12:55:20 +00:00
bottom: 45px;
left: 45px;
2024-10-16 18:42:47 +00:00
opacity: 0;
scale: 0.95;
2024-10-16 17:18:08 +00:00
}
100% {
opacity: 1;
2024-10-25 12:55:20 +00:00
left: 30px;
bottom: 30px;
2024-10-16 18:42:47 +00:00
scale: 1.0;
2024-10-16 17:18:08 +00:00
}
2024-10-16 15:43:00 +00:00
}