Skip to content

Adds a directive that listens for click events and scrolls to elements.

License

Notifications You must be signed in to change notification settings

rigor789/vue-scrollto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-scrollTo

Vue.js directive.
Adds a directive that listens for click events and scrolls to elements.

Install

With npm do:

$ npm install vue-scrollTo --save

Usage

var Vue = require('vue');
var vueScrollTo = require('vue-scrollTo');
Vue.use(vueScrollTo);
<a href="#" v-scroll-to=".element">Scroll to .element</a>

<div class="element">
    Hi. I'm element.
</div>

License

MIT