1.2.0 • Published 5 years ago

vue-wow v1.2.0

Weekly downloads
398
License
MIT
Repository
github
Last release
5 years ago

vue-wow

Build Status codecov vue-wow NPM downloads NPM downloads JS gzip size

浏览器可视窗口加载 DEMO地址

Use Setup for Webpack

install vue-wow

npm install vue-wow --save

Vue mount

// import
import Vue from 'vue'
import VueWow from 'vue-wow'

// mount with global
Vue.use(VueWow)

// mount with component
import {UAnimateContainer, UAnimate} from 'vue-wow'

export default {
  components: {
    UAnimateContainer,
    UAnimate
  }
}

Use in SPA

<template>
  <u-animate-container>
    <u-animate
      name="fadeIn"
      delay="0s"
      duration="1s"
      :iteration="1"
      :offset="0"
      animateClass="animated"
      :begin="false" 
    >
      测试
    </u-animate>
  </u-animate-container>
</template>
<script>
  export default {
    data () {
      return {
        
      }
    } 
  }
</script>

Api

UAnimate

Properties
NameTypeDefaultDescription
nameString''组件动画的名称class(推荐填写animate.css,如fadeIn)
elString'div'组件渲染标签
durationString1s动画持续时间
delayString0s动画延迟时间
iterationNumber1动画运行次数
offsetNumber0距离可视区域多少开始执行动画(begin参数必须为false时有效)
animateClassString'animated'animation.css 动画的 class
beginBooleanfalse是否立即执行 忽略屏幕位置计算

Events

NameParametersDescription
startthis动画开始
endthis动画结束
1.2.0

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago