Slide.css
De WikiCafe
Revisión del 02:09 5 mar 2021 de CafeManagement (discusión | contribs.)
.container {
background-color: white; width: 300px; padding: 50px;
float:right; margin-right:-25px; margin-top:-200px;
}
ul, li {
padding: 0; margin: 0; list-style: none;
}
ul.slider {
position: relative; width: 300px; height: 300px;
}
ul.slider li {
position: absolute; left: 0px; top: 0px; opacity: 0; width: inherit; height: inherit; transition: opacity .5s; background: #fff;
align-items: center;
}
ul.slider li img {
width: 100%; height: 300px; object-fit: cover;
}
ul.slider li:first-child {
opacity: 1;
/*Mostramos el primer