.carousel-item:before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 1);
opacity: 0.4;
transition: 450ms opacity;
}
.carousel-item:hover:before {
opacity: 1;
}
.carousel-item:hover + .carousel-item {
transform: translateX(100px);
}
.carousel-item {
will-change: transform;
border-radius: 20px;
position: relative;
display: inline-block;
width: 200px;
height: 250px;
margin-right: 10px;
font-size: 20px;
cursor: pointer;
transition: 450ms all;
transform-origin: center left;
}
¿Quieres ver más aportes, preguntas y respuestas de la comunidad?