npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

jcider

v3.0.8

Published

An extensive and responsive jQuery plugin for creating carousels or sliders.

Readme

jCider

An extensive and responsive jQuery carousel plugin that will slide your world.

This plugin was written as a fun personal project when I was a kid. It has not been in development since 2015.

Installation

Link jQuery, jcider.css, and jcider.min.js in your html file, using the CDN or otherwise.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/jcider.css"/>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/jcider.min.js"></script>

Package Managers

bower install --save jcider

npm install --save jcider

Usage

HTML

The carousel uses a 3 layer structure in the HTML document.

<div class="slider">
	<ul>
		<li>First Slide</li>
		<li>Second Slide</li>
		<li>Third Slide</li>
	</ul>
</div>

All your content for each slide should go inside the innermost elements, as illustrated above.

For the rest of the docs we will refer to the outermost element as the wrapper, the middle element as the slider and the innermost elements as the slides.

CSS

The styles in the jcider.css file are the default styles that come with the plugin. You can customize the appearence and positioning as per your convinience in the jcider.css file. Please refer to the file for information on the selectors.

JS

$(document).ready(function(){
	// Make sure to call jcider on the wrapper (outermost) element
	$('yourWrapperElementHere').jcider();
});

Settings

You can pass in multiple options as arguments for the .jcider() function.

$('yourWrapperElementHere').jcider({
	looping: true, // For looping
	visibleSlides: 1, // Visible no. of slides
	variableWidth: false, // For variable width
	variableHeight: true, // For variable height
	fading: false, // For fading/sliding effect
	easing: 'cubic-bezier(.694, .0482, .335, 1)', // For easing
	transitionDuration: 400, // Duration of slide transition
	autoplay: false, // Duh...
	slideDuration: 3000, // Duration between each slide change in autoplay
	controls: true, // For visibility of nav-arrows
	controlsWrapper: 'div.jcider-nav', // Element for nav wrapper
	controlsLeft: ['span.jcider-nav-left', ''], // Element for nav-left 
	controlsRight: ['span.jcider-nav-right', ''], // Element for nav-right
	pagination: true, // For visibility of pagination
	paginationWrapper: 'div.jcider-pagination', // Element for pagination wrapper
	paginationPoint: 'div.jcider-pagination-point' // Element for pagination points
});

| Setting Name | Type | Description | Default | |--------------|-------|-------------|---------| | looping | boolean | Selects if looping is there or not. | true | | visibleSlides | integer | Selects the number of slides visble at a time. | 1 | | variableWidth | boolean | Selects if the wrapper should resize with the slide width or not. | false | | variableHeight | boolean | Selects if the wrapper should resize with the slide height or not. | true | | fading | boolean | Selects the type of transition. true is fading. false is sliding. | false | | easing | string | Selects the type of easing to be used for CSS animations. | 'cubic-bezier(.694, .0482, .335, 1)' | | transitionDuration | integer | The duration taken to transition from one slide to another, in milliseconds. | 400 | | autoplay | boolean | Chooses whether automatic transition between slides is on or off. true is on. | false | | slideDuration | integer | The duration between change of slides, in milliseconds. Only applicable if autoplay is on. | 3000 | | controls | boolean | Chooses whether the navigation controls are visible or not. true is visible. | true | | controlsWrapper | string | Selector for the nav-wrapper. Element followed by an optional id or multiple classes. Multiple classes must be separated by periods. | 'div.jcider-nav' | | controlsLeft | array > string * 2 | Selector for left button for nav. Array containing two strings. The first string is the Element followed by an optional id or multiple classes. Multiple classes must be separated by periods. The second string is optional content. | ['span.jcider-nav-left', ''] | | controlsRight | array > string * 2 | Selector for right button for nav. Array containing two strings. The first string is the Element followed by an optional id or multiple classes. Multiple classes must be separated by periods. | ['span.jcider-nav-right', ''] | | pagination | boolean | Chooses whether the pagination is visible or not. true is visible. | true | | paginationWrapper | string | Selector for pagination-wrapper. Element followed by an optional id or multiple classes. Multiple classes must be separated by periods. | 'div.jcider-pagination' | | paginationPoints | string | Selector for pagination-points. Element followed by an optional id or multiple classes. Multiple classes must be separated by periods. | 'span.jcider-pagination-point' |

Using Multiple carousels in one page

You can use multiple carousels in one page with ease. There may be two or more sliders with the same class.

For example, your html would be-

<div class="slider">
	<ul>
		<li>First Slide.</li>
		<li>Second Slide.</li>
		<li>Third Slide.</li>
	</ul>
</div>

<div class="slider">
	<ul>
		<li>First slide.</li>
		<li>Second slide.</li>
		<li>Third slide.</li>
	</ul>
</div>

<div class="another-slider">
	<ul>
		<li>First Slide.</li>
		<li>Second Slide.</li>
		<li>Third Slide.</li>
	</ul>
</div>

<div class="another-slider">
	<ul>
		<li>First Slide.</li>
		<li>Second Slide.</li>
		<li>Third Slide.</li>
	</ul>
</div>

Your JSwould be-

$('.slider').jcider();
$('.another-slider').jcider();

Functions

jcider.moveLeft()

Transition towards the left.

$(document).ready(function() {
	$('# main').jcider({
		//Some options
	});

	$('button#left').click(function() {
		$('# main').jcider.moveLeft();
	});
});

jcider.moveRight()

Transition towards the right.

$(document).ready(function() {
	$('# main').jcider({
		//Some options
	});

	$('button# right').click(function() {
		$('# main').jcider.moveRight();
	});
});

jcider.moveTo(index)

Transition to slide at index (starting from 0).

$(document).ready(function() {
	$('# main').jcider({
		//Some options
	});

	$('button# home').click(function() {
		$('# main').jcider.moveTo(0);
	});
});

jcider.play()

Enable autoplay.

$(document).ready(function() {
	$('# main').jcider({
		//Some options
	});

	$('button# play').click(function() {
		$('# main').jcider.play();
	});
});

jcider.pause()

Disable autoplay.

$(document).ready(function() {
	$('# main').jcider({
		//Some options
	});

	$('button# pause').click(function() {
		$('# main').jcider.pause();
	});
});

jcider.togglePlay()

Toggle autoplay.

$(document).ready(function() {
	$('# main').jcider({
		//Some options
	});

	$('button# toggle').click(function() {
		$('# main').jcider.togglePlay();
	});
});

jcider.hideControls()

Hide controls.

$(document).ready(function() {
	$('# main').jcider({
		//Some options
	});

	$('button# hide').click(function() {
		$('# main').jcider.hideControls();
	});
});

jcider.showControls()

Show controls.

$(document).ready(function() {
	$('# main').jcider({
		//Some options
	});

	$('button# show').click(function() {
		$('# main').jcider.showControls();
	});
});

jcider.toggleControls()

Toggle controls.

$(document).ready(function() {
	$('# main').jcider({
		//Some options
	});

	$('button# show').click(function() {
		$('# main').jcider.showControls();
	});
});

jcider.hidePagination()

Hide pagination.

$(document).ready(function() {
	$('# main').jcider({
		//Some options
	});

	$('button# hide').click(function() {
		$('# main').jcider.hidePagination();
	});
});

jcider.showPagination()

Show pagination.

$(document).ready(function() {
	$('# main').jcider({
		//Some options
	});

	$('button# show').click(function() {
		$('# main').jcider.showPagination();
	});
});

jcider.togglePagination()

Toggle pagination.

$(document).ready(function() {
	$('# main').jcider({
		//Some options
	});

	$('button# show').click(function() {
		$('# main').jcider.togglePagination();
	});
});

Dependencies

jQuery 1.x

License

Released under The MIT License.