New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vue-snap

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-snap

Lightweight Carousel based on CSS Scroll Snap

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
900
8.04%
Maintainers
1
Weekly downloads
 
Created
Source

vue-snap

🌿 Modern, lightweight Vue 3 Carousel powered by CSS Scroll Snap.

vue-snap logo

npm version npm bundle size license

Table of Contents

About

The idea behind this plugin is to create a fully responsive and well-optimized carousel. We’ve used modern CSS features like Scroll Snapping, which allows the carousel wrapper to lock onto specific slides or positions after the user finishes scrolling. This approach helps us minimize the library size by including only the essential parts, and it avoids heavy JavaScript computations or CSS hacks.

Examples/Stories

  • 📕 Example

  • 📺 Props/Events/Slots

  • Lightweight – up to 5–10× smaller than other libraries

  • No calculations or heavy logic – performance-first approach

  • Fully responsive – most customization is handled via CSS (e.g. number of visible slides)

  • ESM bundle with tree-shaking – dead code is automatically eliminated

  • SSR support – works with frameworks like Nuxt.js 🎉 More here

  • Vue 3 support 🎉 More here

  • Modern browser support – compatible with all common browsers More here

Installation & Usage

Installation

  pnpm add vue-snap
  yarn add vue-snap
  npm install vue-snap

Usage - Globally

import { createApp } from 'vue'
import App from './App.vue'

import VueSnap from 'vue-snap'
import 'vue-snap/dist/vue-snap.css'

const myApp = createApp(App)

myApp.use(VueSnap)
myApp.mount('#app')

Usage - Locally

import { Carousel, Slide } from 'vue-snap'
import 'vue-snap/dist/vue-snap.css'

export default {
  components: {
    Carousel,
    Slide
  }
}

Examples usage

Check out examples folder for more details or documentation

Contribution

If you have a feature request then feel free to start a new issue, or just grab existing one.

License

MIT

Keywords

vue

FAQs

Package last updated on 18 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts