Edit in JSFiddle

<div id="app">
  <button v-scroll-to="{ 
          el: '#element',
          onDone: onDone,
          onCancel: onCancel
      }">
      Scroll callbacks
  </button>
  
  <h1 id="element">Hi. I'm element</h1>
</div>
new Vue({
  el: '#app',
  methods: {
    onDone() {
      alert('done')
    },

    onCancel(e) {
      alert('canceled')
      console.log(e)
    }
  }
})
h1, button {
  margin-bottom: 1000px;
}

External resources loaded into this fiddle: