0.2.8 • Published 3 years ago

vue-collage-slideshow v0.2.8

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

vue-collage-slideshow

Responsive slideshow with animated collages for Vue.js. After given images are preloaded, component generates collages with different templates. Every slide can contain up to 5 pictures. Using transition animation, the component creates a different slide effects for every image in a collage (slide from the left/right/top/bottom). Collages are made in a way that vertical and horizontal images fit to container as best as possible. Slideshow takes up 100% of the container height.

Demo:

Check out the demo on jsFiddle

Installation:

Just use npm install --save vue-collage-slideshow

Set up:

import Slideshow from 'vue-collage-slideshow';

export default {
  ...
  components: {
    Slideshow
  }
  ...
};

Usage:

<slideshow :images="images" 
           :slidesInterval="4000"
            height="600px">
</slideshow>

Props:

PropsTypeDefaultDescription
imagesArray[]Array of Objects with a structure: {image: "https://example.com/images/picture.jpg"}
heightString'600px'Define the height of the slideshow container. Could be 100% etc
collageSizeMinNumber2Define the minimum collage size (number of images that can be in one collage)
collageSizeMaxNumber5Define the maximum number of images that can be in one collage
slidesIntervalNumber4000Minimum is 1000 for better experience. Define the time in miliseconds before the next slide will be played
showNoImagesMsgBooleantrueWhether display "no images" text or not
noImagesMsgString'No Images'Define the text of the message that shows up if there are no images
showLoadingMsgBooleantrueWhether display the loader for images preloading or not
loadingMsgString'Loading...'Define the text of the preloader message
keyboardNavigationBooleanfalseEnable arrows navigation and play/pause on space button

Slots:

"loader" - slot to place loading message when images are loading

<template slot="loader">
    <div id="loader">Loading...</div>
</template>

"empty" - content to display when no items are present in the images array

<template slot="empty">
   <div id="no-images">No images</div>
</template>
           ```
## Contribution
Feel free to contribute on [GitHub](https://github.com/edicasoft/vue-collage-slideshow)
0.2.8

3 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago