Simple vue smooth scroll
npm install vue-smooth-scroll> Simple vue smooth scroll based on vue-smoothscroll https://github.com/Teddy-Zhu/vue-smoothscroll/blob/master/README.md
bash
install dependency
npm install --save vue-smooth-scroll
` ` javascript
// import on your project (less then 1KB gziped)
import vueSmoothScroll from 'vue-smooth-scroll'
Vue.use(vueSmoothScroll)
`Usage
` html
Anchor
`
Custom options
$3
` js
{
duration: 500, // Animation speed
offset: 0, // Offset from element, you can use positive or negative values
}
`
$3
` html
Anchor
`
$3
` html
``