vue-smooth-scrollbar

Smooth Scrollbar Vue.js single file component
5,566
Install
npm install vue-smooth-scrollbar
Latest Version:1.0.3
Vue:2
Last Updated:Oct 20, 2021
Links: npm
Maintainer: magisters

Vue Smooth Scrollbar

Smooth Scrollbar for Vue.js projects. Based on @idiotwu's smooth-scrollbar.

Usage

1. Install dependency

npm install --save vue-smooth-scrollbar

2. Import component

// src/main.js
import Vue from 'vue'
...
import SmoothScrollbar from 'vue-smooth-scrollbar'
Vue.use(SmoothScrollbar)
...

3. Use component in your templates

<template>
  <smooth-scrollbar id="scroll-area">
    <div id="example-content"></div>
  </smooth-scrollbar>
</template>

<style>
#scroll-area {
  width: 500px;
  height: 500px;
}

#example-content {
  width: 2000px;
  height: 2000px;
}
</style>

Backlog

  • Plugin structure
  • Basic implementation
  • Options
  • Methods
  • Build dist
  • SSR / Nuxt
  • Events
  • Styling

Version History

Version Released Vue License
1.0.3 ^2.6.14
1.0.2 ^2.6.14
1.0.1 ^2.6.14
1.0.0 ^2.6.14
0.1.2 MIT