SwiperJS #FrontendTips #CSSTrick
Have you ever wanted your Swiper slider to move non-stop, without pausing between slides?
Maybe you’re building a logo carousel, news ticker, or a smooth testimonial slider. Well, here’s a quick fix to get that classic marquee effect using just a bit of CSS and config tweaks.
.swiper-wrapper {
transition-timing-function: linear;
}
speed: 5000,
autoplay: {
delay: 1,
disableOnInteraction: false,
}
That’s it! You now have a Swiper that scrolls seamlessly — no pause, just smooth motion. 🌀
Tip: Lower speed values = faster scrolling.
🧪 Tested on Swiper v8.4.5. Let’s hope this becomes an official feature in future versions!
Have you tried this? Got a better way to do it? Share below — I’d love to see your versions!
Top comments (0)