Slider
Page: Homepage


Snippet Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Auto Scrolling Banner</title>
<style>
/* Wrapper to hide overflow */
.marquee-container {
width: 100%;
overflow: hidden;
white-space: nowrap;
background-color: black;
color: white;
font-size: 20px;
padding: 10px 0;
}
/* Scrolling text */
.marquee-content {
display: inline-block;
padding-left: 100%; /* Start off-screen */
animation: scroll 15s linear infinite; /* Scrolling animation */
}
/* Keyframe animation */
@keyframes scroll {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-100%); /* Move the content to the left */
}
}
/* @media (min-width: 1200px) {
.bls__section > .container {
max-width: 100vw;
margin-left: 0px !important;
padding-left: 30px;
}
} */
/* Responsive Design */
@media (max-width: 768px) {
.marquee-content {
animation: scroll 15s linear infinite; /* Faster scroll on smaller screens */
}
}
</style>
</head>
<body>
<div class="marquee-container">
<div class="marquee-content">🎉🎉🎉 10% Off On Prepaid Orders 🎉🎉🎉</div>
</div>
</body>
</html>