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>
<div id="scroll-area">
<smooth-scrollbar>
<div id="example-content"></div>
</smooth-scrollbar>
</div>
</template>
<style>
#scroll-area {
width: 500px;
height: 500px;
}
#example-content {
width: 2000px;
height: 2000px;
}
</style>
- Plugin structure
- Basic implementation
- Options
- Events
- Methods
- Styling
- Build dist
- SSR / nuxt