Image Slider

Show your photos in a slideshow that slides or fades. Add your image URLs, captions and links, choose autoplay, arrows and dots, and copy the code. The slider is plain HTML, CSS and a few lines of JavaScript, with no library and nothing loaded from xorbin.com.

Live preview
Embed code

Everything happens in your browser. The code is self-contained: it doesn't load anything from xorbin.com and doesn't track your visitors. The share link keeps your settings in the part of the address after #, which is never sent to a server.

How to add the image slider to your website

  1. Open a sample slide under Slides and replace its image URL, description and caption. Add a link if you want one. Use the arrows to reorder slides, ✕ to remove one, and + Add slide for more.
  2. Choose the effect, autoplay, controls and shape. The preview updates as you go.
  3. Click Copy code.
  4. Paste it into your page as HTML, where the slider should appear.
  • WordPress: add a Custom HTML block and paste the code.
  • Shopify: add a Custom Liquid section in the theme editor.
  • Wix: use Embed code → Embed HTML.
  • Squarespace: add a Code block.
  • Webflow: drag in an Embed element.
  • Plain HTML: paste the code where the widget should appear.

To come back to your design later, click Copy share link and save the link. Opening it restores every setting.

Features

Slide or fade

Slides move sideways or cross-fade, and every image keeps the same shape so the page doesn't jump.

Autoplay you can stop

Autoplay comes with a pause button, and it also pauses while the mouse is over the slider or keyboard focus is inside it. Visitors who turn on reduced motion in their system settings see it start paused.

Touch and keyboard

Visitors swipe on phones, and the page still scrolls normally. With the slider focused, the arrow keys move between slides, and Home and End jump to the first and last.

Accessible

Screen readers hear it as a carousel with numbered slides. Slides that are out of view are hidden from them, and so are their links, so the tab key only reaches what's on screen.

Tips for a good slideshow

  • Use images of the same shape, or choose Fill (crop) so every slide fills the frame the same way.
  • Keep important details away from the bottom edge when you show captions or dots.
  • Give visitors time to read: 5 seconds or more per slide works well for captions.
  • Three to six slides is usually enough. Most visitors don't wait for slide ten.
  • Compress large photos before you upload them. The first image loads right away and the rest load when needed.

Images and privacy

The builder runs in your browser and doesn't upload your files. The images load from the addresses you enter, both in the preview and on your website, so use images you host or have permission to show. Prefer HTTPS addresses: an HTTPS page blocks images from plain HTTP.

A share link holds your settings, including the image addresses and links, so anyone who has it can read them. Don't put private or signed image URLs in a link you share.

Frequently asked questions

Can each slide link somewhere?

Yes. Add a link to any slide, for example a product or an article. In the exported code, links open in the same tab. In the preview they open in a new tab so you don't lose your settings.

Why is a slide missing?

A slide is shown only when it has an image URL. In the list, a slide without one is marked "not shown". If the slide is listed but the image doesn't appear, open its address in a new tab: the file may have moved, or its host may block use on other sites.

What's the difference between the description and the caption?

The description is the image's alt text, read by screen readers and shown if the image fails to load. The caption is visible text on the slide. If you leave the description empty, the caption is used for both.

Can I use it more than once on a page?

Yes. Paste the code for each slider. Every slider runs on its own.

Can I remove the Xorbin credit?

Yes. Turn off the credit link under Credit before you copy the code. It changes nothing else.

Further reading

Last updated:

© 2008–2026 XORBIN.COM. All rights reserved.