🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

A simple, lightweight, responsive, touch-enabled jQuery image slider/carousel plugin that has the ability to auto resize/crop/center the images on window resize.

Carousel Image-Slider

Documentation

Free Simple Slider

Very simple and easy to use. Contains only a few necessary options.

Getting Started

Copy free-simple-slider.css file to css directory in your project and free-simple-slider.js file js directory. Next just add a link to the css file in your :

<link rel="stylesheet" href="free-simple-slider.css" type="text/css" media="all"/>

Then, before your closing tag add:

<script src="js/free-simple-slider.js"></script>

Ok, now you need to write some code in your script.js file to fire the slider:

$(document).ready(function () {     $('your-slider-ul-selector-here').freeSimpleSlider({         //If you like, you may set some option here     }); });

Options

Slider contains only this option:

  • dot navigation
  • arrow navigation
  • 3 types of animation
  • Control over the display time of slides

If you want, you can turn on or turn of a few options of the slider. Example below:

$(document).ready(function () {     $('your-slider-ul-selector-here').freeSimpleSlider({         dots: false,         arrows: false,         time: 5000,         animation: "fade"     }); });

Table with plugin options

Option Default Value 1 Value 2 Value 3
dots false true true
arrows true true true
time 5000 number of milliseconds
animation "fade" "basic" "fade" "slide"

Swipe

Free Simple Sliders contains the hammer.js library which allow to swipe navigation on mobile devices. It is optional.

To handle a swipe event copy hammer.min.js file to your js directory and before your closing tag add:

<script src="js/hammer.min.js"></script>

and that's it! You can enjoy your new very simple slider on your website.

Version

1.0.0

License

The MIT License (MIT)


You May Also Like