A Vanilla JavaScript Content Carousel Slider Plugin | gaBasicSlider

gaBasicSlider is a vanilla JavaScript slider plugin that is designed to be customizable. If you want to design your own slider and you can create it in html and css, gaBasicSlider can animate it and give you API controls for your design.


  • 1.8 KB compressed
  • Touch support
  • parallax animation
  • Move the parts to fit your design
  • Infinite Repeated Navigation

How it works

gaBasicSlider takes parent-child coding and moves them with a slight difference effect. You can optionally pass the nodes to the next and previous buttons. gaBasicSlider also takes a node where it can either create pointers or use the current markup as pointers.

jQuery Slider/Carousel Plugin That Uses CSS3 Transitions | KOslider

How to make use of it:

1. Put in the jQuery JavaScript library and the jQuery gaBasicSlider plug-in.

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="ga-basic-slider-min.js"></script>

2. Add your content to the slider that follows the HTML structure.

<div id="example" class="slider">
    <h2>Title 1</h2>
    <p>Description 1</p>
    <h2>Title 2</h2>
    <p>Description 2</p>
    <h2>Title 3</h2>
    <p>Description 3</p>

3. Configure the plugin to create a carousel slider for the main content.


4. All settings are default.

// enable auto rotation
animate: true,

// animation delay time
animationDelay: 6000,

// animation duration time
animationTime: 300,

// CSS selector for custom indicator
indicators: null,

// CSS selector for custom next button
btnNext: null,

// CSS selector for custom previous button
btnPrevious: null

4. General ways to control the slider.

// turn animation off

// turn animation on


This table shows each gaBasicSlider parameter as well as the variable type for each parameter and its default value if omitted.

animationDelayNumber (milliseconds)6000
animationDurationNumber (milliseconds)300

Basic Content Carousel Slider, gaBasicSlider Plugin/Github

See Demo And Download

Official Website(gregartist): Click Here

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

Related Posts


Google Translate Dropdown Customize With Country Flag | GT API

Flag google translates jQuery text that takes advantage of the Google Cloud Translation API to translate web content between languages by selecting a country from the dropdown…


HTML 5 File Input Optimized for Bootstrap 4.x./3.x with File Preview | Bootstrap Fileinput

bootstrap-fileinput is an improved HTML 5 file input  Bootstrap 5.x, 4.x and 3.x with file preview for different files, provides multiple selections, resumable section uploads, and more….


CSS Layout Components Horizontal/Vertical Stack | HStack and VStack

HStack and VStack in CSS – CSS layout components that (basically) stack anything horizontally and vertically. A pure CSS library that makes it easy to stack elements…


How to Add Floating Whatsapp Chat Button In HTML | venom-button

Venom Button is a very simple plugin for the jQuery floating WhatsApp button. Adds a floating button to your site that calls WhatsApp Click to Chat API. It will automatically start the WhatsApp…


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…


Simple Alert, Confirm, Prompt Popup Using Vanilla JavaScript Library | attention.js

JavaScript provides various built-in functionality to display popup messages for different purposes. Attention JS is a vanillaJS plugin used to create a custom alert, confirm, or Prompt…

Leave a Reply

Your email address will not be published. Required fields are marked *