Narcoleptic Pasta Manufacturer
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

vue2-hover-intent

1.0.3 • Public • Published

Hover intent directive for VueJs V2

Usage: npm install vue2-hover-intent --save-dev

app.js:

  • import HoverIntent from 'vue2-hover-intent';
  • Vue.directive('hover-intent', HoverIntent);

component.vue:

  • <a v-hover-intent="functionToCall.bind(null, arg1)"> // defaults to 200 milliseconds
  • <a v-hover-intent:500="functionToCall.bind(null, arg1)">
  • <a v-hover-intent="functionToCall"> // no arguments needed for the function

Install

npm i vue2-hover-intent

DownloadsWeekly Downloads

71

Version

1.0.3

License

GPL-3.0

Unpacked Size

2.1 kB

Total Files

3

Last publish

Collaborators

  • avatar