简体   繁体   中英

How to create an “endless” scrolling slideshow?

I know a good bit of JS and I'm familiar with jQuery, and I'm trying to create an "endless" slideshow (like the one on http://thisismedium.com/ ), where the images scroll -- one right behind the other -- and when it reaches the end it loops.

I don't really know how to start, so I was hoping someone could point me in the right direction. I created a slideshow before that automatically switched images and let you click Next and Previous, but I'm stuck here. =/.

I would suggest you take a look at the jQuery Cycle module.

They have a good beginner introduction here: http://jquery.malsup.com/cycle/begin.html

I've used this for a couple of projects, and it's pretty easy.

Try this and use the scrollLeft effect.

If you need assistance implementing it, just ask.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM