Infinite horizontal slide

A horizontal slider script. Works with callbacks when a slide is not yet set. Plain javascript, no dependencies.

In this example, the callback to get the previous slide has a timeout of 500 milliseconds to simulate some AJAX call.

Full page example

Multiple sliders example with some configuration changes.

Another script (old one) - uses only one div:

Multiple sliders example