npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hooper-vue3

v0.4.5

Published

A customizable accessible carousel slider optimized for Vue

Downloads

4,589

Readme

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 npm:

npm install hooper-vue3

Use Hooper

<template>
  <hooper>
    <slide>
      slide 1
    </slide>
    <slide>
      slide 2
    </slide>
    ...
  </hooper>
</template>

<script>
  import { Hooper, Slide } from 'hooper-vue3';
  import 'hooper-vue3/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 |