New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

es6-simple-carousel

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-simple-carousel

A light and simple pure javascript carousel.It is usable in the javascript base projects (like reactjs,vuejs,angular)

  • 1.3.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-61.54%
Maintainers
1
Weekly downloads
 
Created
Source

A light and simple pure javascript carousel.It is usable in the javascript base projects (like reactjs,vuejs,angular).

Installation

npm install

Start Dev Server

npm start

Build Prod Version

npm run dist

Features:

  • ES6 Support via babel (v7)

When you run npm run dist created module on dist folder. you can use from index.es.js on your project.

1. Getting Started

  • add Slider from es6-simple-carousel on your page.
// ...
import { Slider } from 'es6-simple-carousel';
import 'es6-simple-carousel/dist/styles/slider.css',
// optional
import 'es6-simple-carousel/dist/styles/custom.css',
//...

2. config your slider

add config on Slider class.

const slideConfig = {
  slider:  document.querySelector(`#slider`),
  threshold: 50,
  infinite: true,
  nav: true,
  dots: true,
  autoPlay:false,
  responsive: {
    0: {
      items: 1.5
    },
    560: {
      items: 2
    },
    760: {
      items: 3
    }
  }
};

new Slider(slideConfig);
// ....

on html page

  <div class="container">
    <div id="slider" class="slider">
      <div class="wrapper">
        <div class="slides">
          <span class="slide">Slide 1</span>
          <span class="slide">Slide 2</span>
          <span class="slide">Slide 3</span>
          <span class="slide">Slide 4</span>
          <span class="slide">Slide 5</span>
        </div>
      </div>
    </div>
  </div>

Keywords

FAQs

Package last updated on 07 Mar 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc