All Projects → tsanak → vue-carousel

tsanak / vue-carousel

Licence: Unlicense license
Infinite image carousel built with Vue.js

Programming Languages

HTML
75241 projects
Vue
7211 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to vue-carousel

vue-barousel
Carousel component mimics NetEase Cloud Music
Stars: ✭ 13 (-69.77%)
Mutual labels:  carousel, vue-carousel
pinar
🌲☀️ Customizable, lightweight React Native carousel component with accessibility support.
Stars: ✭ 214 (+397.67%)
Mutual labels:  carousel
react-native-carousel-pager
React Native carousel pager.
Stars: ✭ 90 (+109.3%)
Mutual labels:  carousel
v-owl-carousel
🦉 VueJS wrapper for Owl Carousel
Stars: ✭ 46 (+6.98%)
Mutual labels:  carousel
jquery.circular-carousel
[ABANDONED] A 3D-like circular carousel plugin for jQuery.
Stars: ✭ 49 (+13.95%)
Mutual labels:  carousel
stimulus-carousel
A Stimulus controller to deal with carousel.
Stars: ✭ 22 (-48.84%)
Mutual labels:  carousel
infinite-carousel-flutter
Carousel in flutter. Supports infinite looping and gives control over anchor and velocity.
Stars: ✭ 24 (-44.19%)
Mutual labels:  carousel
react-native-carousel-component
React Native Carousel Component for IOS & Android
Stars: ✭ 61 (+41.86%)
Mutual labels:  carousel
react-native-viewpager-carousel
a flexible viewpager library with carousel functionality
Stars: ✭ 39 (-9.3%)
Mutual labels:  carousel
SimpleSlider
Simple responsive slider created in pure javascript.
Stars: ✭ 21 (-51.16%)
Mutual labels:  carousel
IndicatorView
IndicatorView Library For Android
Stars: ✭ 41 (-4.65%)
Mutual labels:  carousel
carousel-viewpager
Beautiful carousel layout implemented using ViewPager
Stars: ✭ 17 (-60.47%)
Mutual labels:  carousel
react-spring-carousel-js
A new Carousel experience for the modern Web
Stars: ✭ 82 (+90.7%)
Mutual labels:  carousel
DrinksGalleryApp
Xamarin.Forms goodlooking UI sample using the new CarouselView (Parallax).
Stars: ✭ 51 (+18.6%)
Mutual labels:  carousel
AndroidSliderViewsLibrary
AndroidSliderViewsLibrary is an Android SDK library supports vertical & horizontal carousel and slideshow Views which developers simply integrate on Android project. - by @sung2063
Stars: ✭ 33 (-23.26%)
Mutual labels:  carousel
angular-simple-slider
An AngularJS directive providing a simple slider functionality
Stars: ✭ 15 (-65.12%)
Mutual labels:  carousel
vue-m-carousel
vue 移动端轮播组件
Stars: ✭ 53 (+23.26%)
Mutual labels:  carousel
react-cool-virtual
😎 ♻️ A tiny React hook for rendering large datasets like a breeze.
Stars: ✭ 1,031 (+2297.67%)
Mutual labels:  carousel
svelte-slidy
📸 Sliding action script
Stars: ✭ 211 (+390.7%)
Mutual labels:  carousel
react-imageViewer
React component for image displaying in full screen
Stars: ✭ 61 (+41.86%)
Mutual labels:  carousel

Vue carousel

Simple vue component that outputs an infinite carousel

built with Vue.js and Bulma

Preview

Simple

vue carousel

With auto sliding and progressbar

vue carousel auto slide

Props

  1. images (required): Accepts array of objects.
  2. starting-image (optional) [DEFAULT: 0]: Accepts the index of the image that the carousel starts from
  3. auto-slide-interval (optional): time in milliseconds to auto slide to the next image e.g. 1000, which is 1 second
  4. show-progress-bar (optional) [DEFAULT: false]: boolean to show or hide the progressbar on top of the images. Needs to be used with auto-slide-interval prop.
    //Example of images
    let images = [
        { 
            id: '1',
            big: 'path to full image',
            thumb: 'path to thumbnail'
        },
        { 
            id: '2',
            big: 'path to full image',
            thumb: 'path to thumbnail'
        }
    ]

Example usage

Method 1

You can see an example in both index.html and component.html

Steps

  1. include vue.js
  2. include the carousel.js
  3. create the images array
  4. reference the carousel in your html

Method 2

Using the component with vue cli as a single file component

This method does not use Bulma

Note

To reference the Carousel with another name

  • change the name of the file (Carousel.vue) to whatever you want e.g. MyCarousel.vue
  • change the name attribute inside the file to the previously given name e.g. MyCarousel

Steps

  1. Download Carousel.vue
  2. Copy the file to your project
  3. create the images array
  4.  // import the Carousel.vue 
     import Carousel from 'path/to/Carousel.vue'
     <script>
         export default {
             name: 'OtherComponent',
             // Include the Carousel here
             components: {
                 Carousel
             }
             ...
         }
     </script>
  5. reference it in your template as shown in the examples below
<!-- Example -->
<carousel
    :starting-image="2"
    :images="images"
></carousel>
<!-- Example with auto slide-->
<carousel
    :starting-image="2"
    :images="images"
    :auto-slide-interval="1500"
></carousel>
<!-- Example with auto slide and progressbar on top of the images-->
<carousel
    :starting-image="2"
    :images="images"
    :auto-slide-interval="1500"
    :show-progress-bar="true"
></carousel>

You can also find a post I've written explaining the process on dev.to

📝 Features

If you want a new feature to be implemented you can create an issue with the label Feature.

Contributing

Pull requests are more than welcome! 😃

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].