Megan Taylor

front-end dev, volunteacher, news & data junkie, bibliophile, Flyers fan, sci-fi geek and kitteh servant

Infinite Carousel with jQuery 1.6

I’ve been working on some updates to a site that uses a pretty convoluted and customized combination of JavaScript files, including jQuery 1.6.2. Building an infinite image carousel was an interesting challenge.

JS Bin on jsbin.com

I got a lot of help from these articles:

Making a jQuery infinite carousel with nice features

Create a Simple Infinite Carousel with jQuery

jQuery endless looped slider

I hit an interesting little bug where the browser buffers SetInterval functions, and was able to resolve that with help from this StackOverflow thread: When using setInterval, if I switch tabs in Chrome and go back, the slider goes crazy catching up.

September 10, 2015 | Comments Off on Infinite Carousel with jQuery 1.6 | Categories: Posts | Permalink

Comments are closed.

%d bloggers like this: