1.1.0 • Published 4 months ago

kslider v1.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
4 months ago

jQuery slider plugin

Github action workflow status CodeFactor GitHub Release GPL Licence

Simple jQuery > 3.1.1. slider plugin.

> Demo

https://fabrik.konfer.be/kslider/

> Page

Github page: https://steve-lebleu.github.io/kslider/

> Install

> $ npm i kslider --save

> How to use ?

In your HTML page, between tags, retrieve styles:

<link href="path_to_kslider_css" rel="stylesheet" type="text/css" />

In your HTML page, between tags, retrieve jQuery and kslider :

<script src="directory_of_your_jquery/jquery.js"></script>
<script src="directory_of_your_completer/jquery.kslider.js"></script>

Into your HTML code, place the following code and replace/add your own images :

<div id="kslider-wrapper" class="kslider-wrapper">
  <ul class="kslider">
    <li class="active"><img src="img/item-1.jpg" alt="Damned, pirates are in the square" /></li>
    <li><img src="img/item-2.jpg" alt="Light rays penetrating the forest" /></li>
    <li><img src="img/item-3.jpg" alt="Mountains on the horizon" /></li>
    <li><img src="img/item-4.jpg" alt="Sunset on a lake" /></li>
  </ul>
</div>

Invoke the plugin :

$('.kslider').kslider({});

> Options

Following options are available:

  • animationSpeed: int, speed of the animation (ms)
  • pause: int, duration of one slide transition (ms)
  • navigation: boolean, using navigation
  • description: boolean, display alt attribute as description
  • beforeDisplay: function(e, hiddenElement), function, callback fired before display of image
  • afterDisplay: function(e, visibleElement), function, callback fired after display of image

> Licence

GPL

1.1.0

4 months ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago