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

alexemashev-swipeslider

v2.0.4

Published

jQuery plugin that represents responsive image slider with touch support.

Readme

Image Slider With Swipe

About

This is a tiny jQuery plugin that represents image slider (carousel). Slider supports mouse and touch inputs to slide through images. Also the slider supports HTML content.

Demo picture

Click the demo page

Features

  • mouse and touch (swipe) support;
  • next, previous buttons;
  • bullets to change current slide;
  • can work with images as well as HTML;
  • various options (animation effect, timings, enable, disable certain properties);
  • using css transition to change slides (so it should be video accelerated);
  • responsiveness, can take up available space and shrink images to fit slider if needed;

Installation

Installation Using npm

Use following command: npm i alexemashev-swipeslider

Installation Using Bower

Use following command: bower install swipeslider or bower install swipeslider --save to save to your project as dependency.

Manual Installation

Add these two files to your page: swipeslider.min.js swipeslider.css

You'll also need to add jQuery library if it's not already.

Within your HTML add markup for slides, something like that:

<figure id="sample_slider" class="swipeslider">
<ul class="sw-slides">
  <li class="sw-slide">
    <img src="img/lang_yie_ar_kung_fu.jpg" alt="Lang from Yie Ar Kung Fu">
  </li>
  <li class="sw-slide">
    <img src="img/summer_beach.jpg" alt="Summer beach concept">
  </li>
  <li class="sw-slide">
    <img src="img/borderlands_tiny_tina.jpg" alt="Tiny Tina from Borderlands 2">
  </li>
  <li class="sw-slide">
    <img src="img/redhead.jpg" alt="Redhead girl">
  </li>
</ul>
</figure>

Add following script to make things going:

<script>
$(window).load(function() {
  $('#sample_slider').swipeslider();
});
</script>

Do not forget to add at least height to your slider via css.

How To Customize

Plugin Settings

Plugin can be customized via JavaScript object. For example:

$('#sample_slider').swipeslider({autoPlay: false, swipe: false});

| Property | Default | Description | |------------------|-----------|----------------------------------------------------------------------------------| |sliderHeight|'60%' |Height of the slider block. Set in percents if you want automatic resizing according to width of slider (useful is you need a responsiveness). Set it in pixels it you want to have constant height.| |transitionDuration|500 |Duration of transition effect between slides (in msec.)| |timingFunction |'ease-out'|Easing function that will be used in transition effect (CSS easing function).| |autoPlay |true |Enable automatic transition between slides.| |autoPlayTimeout |3000 |Delay (msec.) between slide transition when autoPlay is true.| |prevNextButtons |true |Show next and previous slide buttons.| |bullets |true |Show bullets that indicate which slide is active and used to quick switching between slides.| |swipe |true |Enable swipe function to switch between slides.|

Style

The interface can be customized by overriding attributes of CSS classes. SCSS file included.

| Class | Description | |--------|--------| |.swipslider |Block that contains slider itself.| |.sw-slides |Block that contains slides.| |.sw-slide |Slide block, can contain either block with content or img element.| |.sw-slide > img |Image of slide.| |.sw-content |Block that can be used instead of img element and can contain other HTML elements. It can be used as a slide with content.| |.sw-next-prev |Overall style of previous and next button.| |.sw-prev |Style for previous button (to override the content use ::after pseudo element).| |.sw-next |Style for next button (to override the content use ::after pseudo element).| |.sw-bullet |Bullets container.| |.sw-bullet li |Single bullet| |.sw-bullet li.active |Active bullet|

Dependencies

  • jQuery;

License

The MIT public license.