0.0.4 • Published 3 years ago

@meteora-digital/gallery v0.0.4

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

Gallery

Gallery is an es6 Class which can be used to easily make a basic fading gallery with dots and autoplay.

Installation

with webpack

yarn add @meteora-digital/gallery

HTML Usage

<div [ js-my-gallery ]>
  <img src"path/to/image_001.jpg" alt="image_001" class="[ js-gallery--item ]">
  <img src"path/to/image_002.jpg" alt="image_002" class="[ js-gallery--item ]">
</div>
import Gallery from '@meteora-digital/gallery';

const myGallery = new Gallery(document.querySelector('.js-my-gallery'), {
  class: 'js-my-gallery',
  autoplay: true,
  duration: 5000,
  dots: true,
});
.js-my-gallery {
  @include meteora-gallery;
}

License

MIT

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago