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

reely

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reely

a lightweight 360° slider for showcasing products

latest
Source
npmnpm
Version
0.4.3
Version published
Maintainers
1
Created
Source

reely

A lightweight 360° slider for showcasing your products

  • No jQuery dependency
  • Heavily inspired by rollerblade
  • touch-friendly
  • Progressively loading images on initialization

Installation

npm install --save reely

Usage

<div class="reely">
  <img src="images/0000.jpg">
</div>
import reely from 'reely';

const images = [
  'images/0000.jpg',
  'images/0001.jpg',
  'images/0002.jpg'
];

const container = document.querySelector('.reely');

const slider = reely(container, {
  imageArray: images,
});

slider.init();

API

MethodArgumentsDescription
initoptionsInitializes reely with options
slideToslideNumberSlides slideNumber

Options

At initialization reely accepts multiple options:

Property NameTypeDefaultDescription
sensitivitynumber35The lower the number, the more sensitive the rotator will be. The number value represents distance in pixels between each frame change.
dragbooleantrueDetermines if the rotator is draggable. If set to false, image will rotate on any mouse movement along the X axis of the page.
autobooleanfalseDetermines if rotator should spin by itself. Default is set to false. If set to true, rotator will spin and user interaction will be disabled.
edgeStopbooleanfalseDetermines if the rotator should keep on rotating when the first or last image is reached.

Events

Event NameDescription
slideChangedEmits after the current slide has changed. Carries e.detail.currentSlide (see /examples folder)

Contribution

npm run dev

License

MIT

Copyright (c) 2018-present, Klaus Fischer

Keywords

slider

FAQs

Package last updated on 08 Mar 2018

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