• Stars
    star
    708
  • Rank 63,953 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 6 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🎠 A customizable accessible carousel slider optimized for Vue

leaps logo

Average time to resolve an issue Percentage of issues still open npm npm

Hooper

Vue.js carousel component, optimized to work with Vue.

Features

  • Easily customizable through rich API and addons.
  • 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.

Browser Support

Chrome Firefox Safari Opera Edge IE
Latest βœ” Latest βœ” Latest βœ” Latest βœ” Latest βœ” 11 βœ”

Getting started

Installation

First step is to install it using yarn or npm:

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>

If you are using PurgeCSS, make sure to whitelist hooper css When importing hooper/dist/hooper.css.

more info at Documentation

Available Props

Prop Default Description
itemsToShow 1 count of items to showed per view (can be a fraction).
itemsToSlide 1 count of items to slide when use navigation buttons.
initialSlide 0 index number of initial slide.
infiniteScroll false enable infinite scrolling mode.
centerMode false enable center mode.
vertical false enable vertical sliding mode.
rtl null enable rtl mode.
mouseDrag true toggle mouse dragging.
touchDrag true toggle touch dragging.
wheelControl true toggle mouse wheel sliding.
keysControl true toggle keyboard control.
shortDrag true enable any move to commit a slide.
autoPlay false enable auto sliding to carousel. This could be changed dynamically.
playSpeed 2000 speed of auto play to trigger slide in ms.
transition 300 sliding transition time in ms.
sync '' sync two carousels to slide together.
hoverPause true pause autoPlay if the mouse enters the slide.
trimWhiteSpace false limit carousel to slide only when there will be no completely empty slide-space.
settings { } an object to pass all settings.

Available CSS Properties

Please also look at the source to style the slider. An initial style can be imported as @import '~hooper/dist/hooper.css';

Class Property Default Description
hooper height 200px the default height of the slider, set to auto to scale with content

More Repositories

1

vuse

🚧 Build web pages with Vuse, the next-gen interactive page builder powered with Vue.js.
JavaScript
583
star
2

verte

🎨 A Color picker component. Built from the bottom to work with Vue.js.
Vue
180
star
3

color-fns

🎨 Modern JavaScript color utilities library
TypeScript
78
star
4

board

A complete admin board template with a large variety of elements and components, based on blexar CSS framework.
Vue
62
star
5

leaps

πŸŽ₯ Declarative Vue.js animations library, spring-physics based.
JavaScript
53
star
6

vue-gql

A small and fast GraphQL client for Vue.js
TypeScript
32
star
7

blexar

❀ An HTML, CSS and JavaScript framework for developing responsive modern web interfaces, focused on usability and minimal sizes, with all the necessary extensions.
JavaScript
32
star
8

align

πŸ“„ Advanced framework that offers a rich post building experience. Align offers unlimited possibilities and packs several components that are also customizable to the core.
JavaScript
31
star
9

base

Base is Baianat's design language, built based on the art of big typography and giving exactly the same experience on any device using responsive elements technique.
JavaScript
13
star
10

PSMeter

A password strength meter for iOS.
Swift
8
star
11

PSMeter-Android

Kotlin
8
star
12

UILabelTextChangeTransition

A simple utility function to animate UILabel text change for iOS
Swift
4
star
13

SpinningButton

A custom UIButton for iOS that can be transformed into a UIActivityIndicator
Swift
4
star
14

BT-OtpView

An off-the-shelf One-Time-Password View For iOS
Swift
1
star