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

https://github.com/ctf0/vue-stagger

vue v2 Staggering-List-Transitions
https://github.com/ctf0/vue-stagger

Last synced: about 1 year ago
JSON representation

vue v2 Staggering-List-Transitions

Awesome Lists containing this project

README

          


Vue Stagger


npm npm

## Installation

```bash
npm install vue-stagger --save
```

## Usage

- register the component.

```js
window.Vue = require('vue')

Vue.component('TransitionStagger', require('vue-stagger'))
```

- now use it like
```html

// your data

```

| prop | required | type | default | description |
|-------------------|--------------------|---------|---------|--------------------------------------------------|
| tag | :x: | string | ul | |
| delay | :white_check_mark: | number | | in milliseconds |
| beforeEnterStyles | :white_check_mark: | object | | [props][velo] |
| enterStyles | :white_check_mark: | object | | [props][velo] |
| leaveStyles | :white_check_mark: | object | | [props][velo] |
| options | :x: | object | {} | extra velocity [options][opt] |
| enterAtOnce | :x: | boolean | false | show all items at once "dont delay the entering" |
| leaveAtOnce | :x: | boolean | false | hide all items at once "dont delay the leaving" |

[velo]: http://velocityjs.org/#cssSupport
[opt]: http://velocityjs.org/