Smooth Scrollbar for Vue.js projects. Based on @idiotwu's smooth-scrollbar.
npm install --save vue-smooth-scrollbar
// src/main.js
import Vue from 'vue'
...
import SmoothScrollbar from 'vue-smooth-scrollbar'
Vue.use(SmoothScrollbar)
...
<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>
- Plugin structure
- Basic implementation
- Options
- Methods
- Build dist
- SSR / Nuxt
- Events
- Styling