New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

kslider

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kslider

Ultra light jquery slider

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

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

Keywords

vanilla

FAQs

Package last updated on 24 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts