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 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-roller-swiper

v0.0.12

Published

A modern Vue 3 carousel component with arc motion effects, touch gestures, and smooth animations.

Downloads

39

Readme

Vue Roller Swiper

A modern Vue 3 carousel component with arc motion effects, touch gestures, and smooth animations.

NPM Version NPM Downloads License: MIT

✨ Features

  • 🎯 Vue 3 Composition API - Built with modern Vue 3 and TypeScript
  • 📱 Touch Gestures - Full touch and swipe support for mobile devices
  • 🖱️ Mouse Wheel - Navigate with mouse wheel
  • ↔️ Arc Motion - Unique curved transition animations using different easing functions
  • 🔄 Auto Play - Configurable automatic slideshow
  • 🎨 Customizable - Flexible slot system for custom content
  • 📐 Smart Navigation - Calculates shortest path for jumping between slides
  • Lightweight - Minimal bundle size with zero dependencies
  • 🔧 TypeScript - Full TypeScript support with type definitions

📦 Installation

npm install vue-roller-swiper

🚀 Quick Start

Global Registration

import { createApp } from "vue";
import VueRollerSwiper from "vue-roller-swiper";
import "vue-roller-swiper/dist/style.css";

const app = createApp(App);
app.use(VueRollerSwiper);

Usage in Components

<template>
  <RollerSwiper :auto-play="true" :delay="3000" ref="swiperRef">
    <template #slider-1>
      <div class="slide">Slide 1</div>
    </template>
    <template #slider-2>
      <div class="slide">Slide 2</div>
    </template>
    <template #slider-3>
      <div class="slide">Slide 3</div>
    </template>
  </RollerSwiper>
</template>

<script setup>
import { ref } from "vue";

const swiperRef = ref();

// Jump to specific slide
const setSlide = (index) => {
  swiperRef.value?.set(index);
};
</script>

📚 API Reference

Props

| Prop | Type | Default | Description | | -------------- | ------- | ------- | ---------------------------------- | | autoPlay | Boolean | false | Enable automatic slideshow | | delay | Number | 3000 | Auto play delay in milliseconds | | ccw | Boolean | false | Enable counter-clockwise rotation | | duration | Number | 300 | Animation duration in milliseconds | | showControls | Boolean | true | Show navigation controls |

Slots

The component uses named slots for content:

<RollerSwiper>
  <template #slider-1>Your first slide content</template>
  <template #slider-2>Your second slide content</template>
  <template #slider-3>Your third slide content</template>
  <!-- Add more slides as needed -->
</RollerSwiper>

You can also use with v-for:

<RollerSwiper>
  <template v-for="index in num" v-slot:[`slider-${index}`]>
    Your slide content
  </template>
</RollerSwiper>

Methods

Access these methods via template ref:

| Method | Parameters | Description | | ------------ | --------------- | ------------------------------------------- | | next() | - | Move to next slide | | prev() | - | Move to previous slide | | set(index) | index: number | Jump to specific slide (uses shortest path) |

Example with Methods

<template>
  <div>
    <RollerSwiper ref="swiperRef">
      <template #slider-1>Slide 1</template>
      <template #slider-2>Slide 2</template>
      <template #slider-3>Slide 3</template>
    </RollerSwiper>

    <div class="controls">
      <button @click="goToPrevious">Previous</button>
      <button @click="goToNext">Next</button>
      <button @click="jumpToSlide(3)">Jump to Slide 3</button>
    </div>
  </div>
</template>

<script setup>
import { ref } from "vue";

const swiperRef = ref();

const goToPrevious = () => {
  swiperRef.value?.prev();
};

const goToNext = () => {
  swiperRef.value?.next();
};

const jumpToSlide = (index) => {
  swiperRef.value?.jump(index);
};
</script>

🎨 Styling

The component comes with default styles, but you can customize them:

.roller-swiper {
  /* Container styles */
  width: 100%;
  height: 400px;
}

.roller-swiper__slider {
  /* Individual slide styles */
}

.roller-swiper__slider--active {
  /* Active slide styles */
}

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Built with Vue 3
  • Bundled with Vite
  • Styled with modern CSS animations

Made with ❤️ for the Vue.js community