Skip to content

Commit

Permalink
Create carousel.css
Browse files Browse the repository at this point in the history
  • Loading branch information
vasumsv authored Oct 5, 2023
1 parent 1a4b84c commit ff3e85a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions css/carousel.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
body {
margin: 0;
padding: 0;
overflow: hidden;
}

.carousel-container {
width: 100%;
height: 300px; /* Adjust the height as needed */
overflow: hidden;
position: relative;
}

.carousel-slide {
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
position: absolute;
animation: carousel 5s linear infinite; /* Adjust the animation duration as needed */
}

@keyframes carousel {
0% {
left: 0;
}
33.33% {
left: 0;
}
66.66% {
left: -100%;
}
100% {
left: -100%;
}
}

0 comments on commit ff3e85a

Please sign in to comment.