100-project-100-days-website/100_projects/40-carousel-image-vanilla-js/style.css
2023-04-02 16:30:12 +03:00
Ask

28 lines
521 B
CSS

{dcc63231ed1c7e0403acb92f23fe99b0dfa74352 true 521 style.css 0xc002a82ee0}

* {
box-sizing: border-box;
}
body {
display: flex;
align-items: center;
justify-content: center;
font-family: "Poppins", sans-serif;
margin: 0;
min-height: 100vh;
background: #E6E6FA;
}
.carousel {
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
overflow: hidden;
height: 500px;
width: 350px;
}
.image-container {
display: flex;
transition: transform 0.5s ease-in-out;
transform: translateX(0);
}
img {
object-fit: cover;
height: 500px;
width: 500px;
}