Press "Enter" to skip to content

A Customizable Accessible Carousel Slider Optimized for Vue

hooper is a responsive, customizable, touch-based carousel slider optimized to work with Vue.js.

Features

  • Easily customizable through rich API and add-ons.
  • Touch, Keyboard, Mouse Wheel, and Navigation support.
  • Two-way control carousels (sync).
  • Full RTL layout support.
  • Supports vertical sliding.
  • Responsive breakpoints.
  • Seamless infinite scroll.
  • Accessible by providing a robust structure and user control.
  • Optimized to work with Vue framework.
  • SSR Support.

How to make use of it:

Installation:

npm install hooper

# or use yarn

yarn add hooper

Use Hooper

<template>
  <hooper>
    <slide>
      slide 1
    </slide>
    <slide>
      slide 2
    </slide>
    ...
  </hooper>
</template>
<script>
  import { Hooper, Slide } from 'hooper';
  import 'hooper/dist/hooper.css';

  export default {
    name: 'App',
    components: {
      Hooper,
      Slide
    }
  }
</script>

Available Props

PropDefaultDescription
itemsToShow1count of items to show per view (can be a fraction).
itemsToSlide1count of items to slide when using navigation buttons.
initialSlide0the index number of the initial slide.
infiniteScrollfalseenable infinite scrolling mode.
centerModefalseenable center mode.
verticalfalseenable vertical sliding mode.
rtlnullenable RTL mode.
mouseDragtruetoggle mouse dragging.
touchDragtruetoggle touch dragging.
wheelControltruetoggle mouse wheel sliding.
keysControltruetoggle keyboard control.
shortDragtrueenable any move to commit a slide.
autoPlayfalseenable auto sliding to the carousel. This could be changed dynamically.
playSpeed2000speed of auto play to trigger a slide in ms.
transition300sliding transition time in ms.
syncsync two carousels to slide together.
hoverPausetruepause autoPlay if the mouse enters the slide.
trimWhiteSpacefalselimit carousel to slide only when there will be no completely empty slide space.
settings{ }an object to pass all settings.

customizable carousel slider for vue js, Hooper Plugin/Github


See Demo And Download

Official Website(baianat): Click Here

This superior jQuery/javascript plugin is developed by baianat. For extra advanced usage, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.