vue-smooth-scrollbar

1.0.3 • Public • Published

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

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

Readme

Keywords

none

Package Sidebar

Install

npm i vue-smooth-scrollbar

Weekly Downloads

136

Version

1.0.3

License

none

Unpacked Size

367 kB

Total Files

6

Last publish

Collaborators

  • magisters