Vue3 Smooth Scroll
Lightweight Vue plugin for smooth-scrolling extended from vue2-smooth-scroll.
For simple use-cases, the native scroll-behavior
CSS property (working draft) may be enough.
Features
- Works on Vue 3
- Directive and programmatic API with global and local config overrides
- SSR
- Smooth, non-blocking animation using
requestAnimationFrame
(with fallback) - Y-axis or vertical scrolling
- Specific scroll containers
- 1.4kB gzipped, 3.1kB min
Installation
npm:
npm install --save vue3-smooth-scroll
import { createApp } from 'vue'
import VueSmoothScroll from 'vue3-smooth-scroll'
const app = createApp(...)
app.use(VueSmoothScroll)