🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

carousel-module

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

carousel-module

A carousel class

1.1.2
latest
Source
npm
Version published
Weekly downloads
22
2100%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

A lightweight and flexible Carousel class that allows you to build fully functional, advanced Carousels with minimal javascript and markup. This library is built using native vanilla javascript. Which means super fast performance. Supports IE10+, all major browsers and even mobile.

Usage

Create a carousel based off of a set of predetermined markup. Assuming, you have your html in the DOM and CSS set up correctly. You can do:

var carousel = new Carousel({
    panels: document.getElementsByClassName('carousel-panel'),
    thumbnails: document.getElementsByClassName('carousel-thumbnail')
});

carousel.goTo(1); // go to second carousel item

More details and example can be found here.

FAQs

Package last updated on 26 May 2015

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