vue-smoothscroll
it's a vuejs version of waves Based on https://github.com/alicelieutier/smoothScroll/blob/master/smoothscroll.js
How to Use
npm install vue-smoothscroll
then in the js file , you can use with router or others
var vueSmoothScroll = require('vue-smoothscroll');
Vue.use(vueSmoothScroll);
//define a tag
<div v-smoothscroll="{ duration : 500, callback: callback , context : undefined }" class="message">
message
</div>
params
duration
is the total duration of the scroll (optional, defaults to 500ms)
callback
is a function to be executed when the scrolling is over (optional)
context
is the scrolling context (optional, defaults to window, can be any HTMLElement Object
)