diff --git a/frontend/src/css/Carousel.css b/frontend/src/css/Carousel.css new file mode 100644 index 0000000000000000000000000000000000000000..2ea6b5295e389e404b6e0bd8e6779014336e7fc6 --- /dev/null +++ b/frontend/src/css/Carousel.css @@ -0,0 +1,42 @@ +/* Carousel.css */ +.carousel { + position: relative; + width: 80%; + overflow: hidden; + height: 500px; /* Set a fixed height or adjust as per your design */ +} + +.banner { + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + transition: opacity 0.5s ease-in-out; +} + +.banner img { + width: 100%; + height: auto; /* Maintain aspect ratio */ + display: block; +} + +.left-arrow, .right-arrow { + position: absolute; + top: 50%; + transform: translateY(-50%); + background-color: rgba(0, 0, 0, 0.5); + color: white; + border: none; + padding: 10px; + cursor: pointer; + z-index: 100; +} + +.left-arrow { + left: 10px; +} + +.right-arrow { + right: 10px; +}