1.0.6 • Published 5 years ago

vue-list-animation v1.0.6

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

vue-list-animation

#简介 用于快速地使用列表的过渡效果。

安装

npm i vue-list-animation -S

import ListAnimation from 'vue-list-animation'

可传递参数

参数名类型说明
xStringx方向上初始的位置,默认为0
yStringy方向锁初始的位置,默认为0
sString初始的大小,默认为0
beforeEnterFunctionbefore-enter
enterFunctionenter
afterEnterFunctionafterEnter

演示

<template>
  <div id="app">
    <list-animation>
      <div v-for="(item, index) in lists" data-delay="index*50" :key="index"> {{item}}</div>
    </list-animation>
  </div>
</template>

<script>
import ListAnimation from 'vue-list-animation'
export default {
  name: 'app',
  components: { ListAnimation },
  data () {
    return {
      lists: []
    }
  },
  mounted() {
    setTimeout(() => {
      this.lists = [1,2,3,4,5,6];
    }, 300)
  }
}
</script>

<style>
</style>
1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago