@olc-digital/components
Version:
Small components library
26 lines (22 loc) • 326 B
CSS
.imageWrapper,
.image {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.imageWrapper {
opacity: 1;
transition: opacity 1.26s ease-in-out;
z-index: 1;
}
.imageWrapper.previous {
z-index: 2;
}
.imageWrapper.current {
z-index: 3;
}
.imageWrapper:not(.previous):not(.current) {
opacity: 0;
}