[otSlider] A Simple, Mobile-Friendly Image Carousel | OneTime Slider

OneTime Slider (otSlider) is a powerful and intuitive slider built from Vanilla JS, which is suitable for any kind of web application. It supports many features like swipe scroll, multi-effects, and many more.

mobile friendly slider, image carousel website, flickity carousel, responsive automatic image slider in html, responsive image slider with text, image gallery slider


  • Configurable slides or transitions fade.
  • Numeric or point numbering.
  • Custom Navigation Arrows.
  • Supports RTL mode.
  • Auto starts and stop functions.
  • Supports swipe events on mobile devices.

How to make use of it:

1. Add references to the otslider JavaScript and Stylesheet.

<link rel="stylesheet" href="otslider.css" />
<script src="otslider.js"></script>

2. Insert pictures to the otslider container with the CSS class of ‘ot-slider’.

<div class="ot-slider">
  // Add Images Here

3. Initialize the library to create a default carousel slider.

var otslider = new OTSlider();

4. You’re additionally allowed to initialize the carousel on any picture container utilizing the component option.

<div id="mySlider">
  // Add Images Here
  element: document.getElementById('mySlider')

5. Config the slide or fade transition.

  // or 'fade'
  transition : 'slide',
  // easing function
  transitionTiming: "ease",
  // duration in ms
  transitionDuration : 500

6. Customize autoplay functionality.

  duration: 2000,
  autoPlay : true,
  pauseOnHover : true

7. Customize the carousel controls.

  // custom prev & next buttons
  prevButton : '&laquo;',
  nextButton : '&raquo;',
  // shows prev & next buttons or not
  showPrevNext : true,
  // shows pagination controls
  showNav : true,
  // uses rounded buttons
  roundButtons : false,
  // uses numeric pagination
  numericNav : true,
  // enables touch swipe events
  swipe : true

8. Set the direction of the carousel slider.

  direction: 'rtl'

9. Determine whether or not to auto modify the carousel slider to fit the display size.

  responsive : false

Swipeable Image Carousel In Vanilla JavaScript, CSS swipe carousel, OneTime Slider(otSlider) Plugin/Github, bootstrap image slider gallery, carousel slider

See Demo And Download

Official Website(iniohd): Click Here

This superior jQuery/javascript plugin is developed by iniohd. For extra Advanced usage, please go to the official website.

Related Posts


Create Side Sliders Input Values Using Mouse Drag | Pointer Lock

HTML Range Slider is a lightweight library to create side sliders to adjust values easily and precisely by making use of the Pointer Lock API. Side Slider…


Smooth and Lightweight Parallax Scroll Library in Pure Javascript

Lightweight and seamless parallax scrolling library implemented in pure javascript using hardware acceleration for additional performance. Main Features Extremely lightweight with no dependencies A few kilobytes of pure…


How to Convert Form Data to JSON with HTML Forms | FormsJS

FormsJS is a simple-to-use JavaScript library that covers type subject values to JSON in real time. The items containing the data category will be analyzed automatically. It…


A Small jQuery Extension to Convert An Editable HTML Table

Editable Table is a small jQuery extension to convert an editable HTML table for fast data entry and validation. A small jQuery extension to convert a static…


Simple jQuery Plugin for Embedding YouTube Videos As Cover Background

jquery.youtube-background is a jQuery plugin built to facilitate YouTube embeds as cover wallpaper using the YouTube Embed API. There is another jQuery Youtube Video Background plugin that…


Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…