1.0.3 • Published 5 years ago

vue-smart-carousel v1.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

vue-smart-carousel

A smart vue carousel component :

  • Only mount first slide at creation and mount others only when carousel enter in viewport => improve first rendering and assets loading.
  • Start sliding only when the carousel is visible on screen
  • Responsive

⚠️ VueSmartCarousel uses the Intersection Observer API to detect if carousel is visible on screen. This API is not fully supported by all browser but a polyfill is available.

Installation

npm install vue-smart-carousel

Usage

<template>
  <vue-smart-carousel>
    <img src="/image-1.jpg" />
    <img src="/image-2.jpg" />
    <img src="/image-3.jpg" />  
  </vue-smart-carousel>
</template>

<script>
  import VueSmartCarousel from 'vue-smart-carousel'
  export default {
    ...
    components: {
      VueSmartCarousel
    }
  }
</script>

Properties

PropertyTypeDefaultDescription
valueNumber0Current index position (you can use v-model to keep it sync)
delayNumber3000Delay between slide transition in milliseconds

Examples

Take a look to demo file to get examples of navigation and pagination implementations.

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago

1.0.0

5 years ago