baianat / Hooper
Licence: mit
π A customizable accessible carousel slider optimized for Vue
Stars: β 561
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Hooper
React Whirligig
A react carousel/slider like component for sequentially displaying slides or sets of slides
Stars: β 20 (-96.43%)
Mutual labels: slider, carousel, slide
Simple Slider
π The 1kb JavaScript Carousel
Stars: β 583 (+3.92%)
Mutual labels: slider, carousel, slide
Svelte Carousel
A super lightweight, super simple Carousel for Svelte 3
Stars: β 144 (-74.33%)
Mutual labels: slider, carousel, slide
vue-piece-slider
animated slides in a fragmented look ππ³β‘οΈπ
Stars: β 95 (-83.07%)
Mutual labels: slider, carousel
Vue Slick Carousel
π₯Vue Slick Carousel with True SSR Written for β‘Faster Luxstay
Stars: β 447 (-20.32%)
Mutual labels: slider, carousel
react-carousel-minimal
React.js Responsive Minimal Carousel
Stars: β 76 (-86.45%)
Mutual labels: slider, carousel
shopify-product-image-slider
Implementation of the Slick image carousel into a Shopify store
Stars: β 21 (-96.26%)
Mutual labels: slider, carousel
cachu-slider
π π Create animated full screen and content-fit sliders efficiently.
Stars: β 30 (-94.65%)
Mutual labels: slide, slider
react-flickity-component
A React.js component for using @desandro's Flickity
Stars: β 258 (-54.01%)
Mutual labels: slider, carousel
hugo-travelify-theme
Port of Aigars Silkalns's Wordpress theme Travelify to Hugo. Demo -
Stars: β 34 (-93.94%)
Mutual labels: slider, carousel
skeleton-carousel
Carousel component. Horizontal and vertical swipe navigation
Stars: β 31 (-94.47%)
Mutual labels: slider, carousel
scroll-snap-carousel
One more carousel plugin, but using CSS Scroll Snap and for every frameworks!
Stars: β 46 (-91.8%)
Mutual labels: slider, carousel
pinar
π²βοΈ Customizable, lightweight React Native carousel component with accessibility support.
Stars: β 214 (-61.85%)
Mutual labels: slider, carousel
vanilla-js-carousel
Tiny (1Kb gzipped) JavaScript carousel with all the features most of us will ever need.
Stars: β 87 (-84.49%)
Mutual labels: slider, carousel
react-styled-carousel
React styled components carousel or slide show. No external css import is required.
Stars: β 42 (-92.51%)
Mutual labels: slider, carousel
SlidableImage
Fancy slider for before&after images
Stars: β 32 (-94.3%)
Mutual labels: slide, slider
Tiny Slider
Vanilla javascript slider for all purposes.
Stars: β 4,298 (+666.13%)
Mutual labels: slider, carousel
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
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 |
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].