Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/masonz/v-hover

Direction-aware hover effect for Vue2.0.
https://github.com/masonz/v-hover

hover vue2

Last synced: 4 days ago
JSON representation

Direction-aware hover effect for Vue2.0.

Awesome Lists containing this project

README

        

# v-hover
[![npm version](https://badge.fury.io/js/v-hover.svg)](https://badge.fury.io/js/v-hover)
> Direction-aware hover effect for Vue2.0, write by typescript. [Demo](https://masonz.github.io/v-hover/)

## Installation

```bash
npm install v-hover -S
```

## How to use

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

```JavaScript
import VHover from 'v-hover'

Vue.use(VHover)
```

in template:

```HTML



...

```

you can custom `overlay` slot in `vhover-item` by:

```HTML

some thing...

```

## Options

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| duration | String       | "300ms" | animation-duration |
| className | String | "vhover" | `vhover-item` class |
| timingFn | String | "ease" | animation-timing-function |
| perspective | Boolean | false | perspective |

## License

MIT © masonz