@pixelgram/v-feedback

1.0.2 • Public • Published

v-feedback

Event driven feedback plugin for Vue.js

What

If the element which you selected detects "mouseenter" or "touchstart", it will be added '.is-enter' class. Also, if the element detects "mouseleave" or "touchend", it will be added '.is-leave' class.

Install

npm install @pixelgram/v-feedback -S

Quick Start

import Vue from 'vue'
import Feedback from 'v-feedback'

Vue.use(Feedback)

Usage

<button v-feedback>Button</button>

detects "mouseenter" or "touchstart", it will be added '.is-enter' class.

Also, detects "mouseleave" or "touchend", it will be added '.is-leave' class.

License

MIT © 2016 c.uehira.

Package Sidebar

Install

npm i @pixelgram/v-feedback

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

6.02 kB

Total Files

7

Last publish

Collaborators

  • in-the-box