0.2.0 • Published 7 years ago

v-hover v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

v-hover

npm version

Direction-aware hover effect for Vue2.0, write by typescript. Demo

Installation

npm install v-hover -S

How to use

Include plugin in your entry file e.g. main.js.

import VHover from 'v-hover'

Vue.use(VHover)

in template:

<vhover-list>
    <vhover-item></vhover-item>
    <vhover-item></vhover-item>
    ...
</vhover-list>

you can custom overlay slot in vhover-item by:

<vhover-item>
  <div slot="overlay">some thing...</div>
</vhover-item>

Options

NameTypeDefaultDescription
durationString      "300ms"animation-duration
classNameString"vhover"vhover-item class
timingFnString"ease"animation-timing-function
perspectiveBooleanfalseperspective

License

MIT © masonz