0.1.6 • Published 3 years ago

parallax-carousel v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Parallax carousel

Project Presentation

Parallax carousel is ease-to-use, high performance carousel (or slider) that brings a new experience of using carousels just by moving cursor

Install

$ npm install parallax-carousel

Example usage

<div id="carousel">
  <div class="my-slider">
    <div class="item">item1</div>
    <div class="item">item2</div>
    <div class="item">item3</div>
    <div class="item">item4</div>
    <div class="item">item5</div>
    <div class="item">item6</div>
  </div>
</div>
import ParallaxCarousel from 'parallax-carousel';

const inst = new ParallaxCarousel({
  el: '#carousel',
});

Options

const inst = new ParallaxCarousel({
  el: '#app',

  // padding from right side of carousel
  // default: 50
  right_padding: 100,

  // custom mobile detection function
  // default: 'is-mobile' module https://www.npmjs.com/package/is-mobile
  isMobileCustom() {
    return false; 
  },
});

License

Parallax carousel is released under the MIT license. © 2021 Miroslaw Shpak

0.1.6

3 years ago

0.1.4

3 years ago

0.1.5

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.3

3 years ago

0.1.0

3 years ago