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)